XWidgetSoft Forum
https://www.bbs.xwidget.com/

BUG: Magnetic Borders - Enabled Regardless of Setting-CLOSED
https://www.bbs.xwidget.com/viewtopic.php?f=3&t=5160
Page 1 of 1

Author:  yereverluvinuncleber [ October 19th, 2014, 8:58 am ]
Post subject:  BUG: Magnetic Borders - Enabled Regardless of Setting-CLOSED

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?

Author:  meme [ October 22nd, 2014, 9:46 pm ]
Post subject:  Re: HELP: Magnetic Borders - Disable?

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.

Author:  yereverluvinuncleber [ October 23rd, 2014, 2:47 am ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

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.

Author:  meme [ October 23rd, 2014, 4:54 pm ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

Moved topic to bug section...

Author:  hamid [ October 25th, 2014, 7:53 pm ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

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
}

Author:  meme [ October 25th, 2014, 8:20 pm ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

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 ?

Author:  hamid [ October 25th, 2014, 9:19 pm ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

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

Author:  meme [ October 25th, 2014, 9:39 pm ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

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 ;)

Author:  yereverluvinuncleber [ October 26th, 2014, 4:30 am ]
Post subject:  Re: BUG: Magnetic Borders - Always enabled Regardless of Set

Marked as CLOSED.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/