XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Dec 10日 16:39

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2014年 Oct 19日 08:58 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 572
Window - Position - Magnetic Borders - this seems to be enabled by default. It makes movement of a widget jerky. I disable it and dragging a widget becomes smooth. This is what I want all my widgets to be by default, smooth to drag around a desktop as per all my other widgets.

So my question is: Magnetic Borders - how do I disable it in code?

or,

how do I disable Magnetic Borders for all widgets in configuration of the IDE?


Last edited by yereverluvinuncleber on 2014年 Oct 26日 04:31, edited 2 times in total.

Top
 Profile  
 
PostPosted: 2014年 Oct 22日 21:46 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 269
Not a solution but more info... a bug ?
If you right click on the widget - position - magnetic borders - untick
then right click on widget - functions - save as default config
in the config.ini file - MagneticBorders=0 is added and updates OK
BUT it makes no difference when the widget is restarted, it defaults to enabled, no matter what is in the default config.ini file.


Top
 Profile  
 
PostPosted: 2014年 Oct 23日 02:47 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 572
Good info. Changed to BUG.

It is an annoying 'feature'. The jerky movement implies a graphic problem with Xwidgets. When you come from another widget engine where the widgets move smoothly on the desktop your first impression of Xwidgets are that the widget engine is not as well-coded due to the poor way they drag... It isn't until you unclick the magnetic borders that you realise that it isn't a bug but a 'feature'. The magnetic borders also prevent you placing a widget on screen with precision.

I find myself turning magnetic borders off too frequently. This small problem needs to be addressed as it shows Xwidgets in a bad light.


Top
 Profile  
 
PostPosted: 2014年 Oct 23日 16:54 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 269
Moved topic to bug section...


Top
 Profile  
 
PostPosted: 2014年 Oct 25日 19:53 
Offline

Joined: 2013年 Oct 26日 08:17
Posts: 362
this doesn't seems to be a bug...
this is a feature of Xwidget

your post is much likely to be a request/suggestion than a bug report

as i understand your request/suggestion is:
you want an option in the Xwidget's Settings,
to Disable/Enable the feature of Magnetic-Borders for all the widgets



if you want to make this feature disable only for your own widget,
you can use this code in your widget:
Code:
function widgetOnLoad()
{
  widget.MagneticBorders=0
}


Top
 Profile  
 
PostPosted: 2014年 Oct 25日 20:20 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 269
Thank you hamid, widget.MagneticBorders=0 works, but don't you think if MagneticBorders=0 is in the default config.ini file it should set it at startup ?


Top
 Profile  
 
PostPosted: 2014年 Oct 25日 21:19 
Offline

Joined: 2013年 Oct 26日 08:17
Posts: 362
now i found what you mean,
but the problem is not the MagneticBorders settings,


the problem is the Config.ini doesn't load at all,
so better to add it to a new topic to prevent confusion,
since the problem doesn't related to MagneticBorders

and better to replace bug to suggestion for this one,
since there is no problem in this one


Top
 Profile  
 
PostPosted: 2014年 Oct 25日 21:39 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 269
Quote:
in the config.ini file - MagneticBorders=0 is added and updates OK
BUT it makes no difference when the widget is restarted, it defaults to enabled, no matter what is in the default config.ini file.

Yes that is the bug and as you point out it applies to all the settings that are saved in the config.ini file by "Save as default"

As you suggest I will create a new topic / bug report - "settings saved in the config.ini file by "Save as default" are not loaded at startup"
Do you agree :?:
Thanks for your assistance ;)


Top
 Profile  
 
PostPosted: 2014年 Oct 26日 04:30 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 572
Marked as CLOSED.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group