GUI - Toggle Pulldown Menus

Features wanted...
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: GUI - Toggle Pulldown Menus

Post by jacky »

TheQwerty wrote:There shouldn't be much aside from adding and removing new items.
Well, but on occasion there's quite some changes done on that area, and I'm thinking that can be a lot over time. Maybe not complicated, but time-consuming...
TheQwerty wrote:It would be nice if Setting/SettingP had a t for Toggle option, but since these aren't stored in the Tabs2 section, it shouldn't be hard to get their values and add some logic to change their states. Maybe later...
Yeah, but technically you can't rely in what's in the INI either, because current values and last-saved values aren't necessarily the same, so to really do such a thing well, there would be the need for script to be able to get the current state of all settings. Like if getkey could be used with a special value as INI file, which would mean the current/in memory value of said setting. No sure that makes sense / is applicable though, or that it'd be worth the trouble to add such a thing...
Proud XYplorer Fanatic

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: GUI - Toggle Pulldown Menus

Post by TheQwerty »

jacky wrote:Yeah, but technically you can't rely in what's in the INI either, because current values and last-saved values aren't necessarily the same, so to really do such a thing well, there would be the need for script to be able to get the current state of all settings. Like if getkey could be used with a special value as INI file, which would mean the current/in memory value of said setting. No sure that makes sense / is applicable though, or that it'd be worth the trouble to add such a thing...
Calling #193; (Save Configuration) eliminates that problem, but then I have never been in the position of not wanting my settings saved.

It may not be ideal but it works well enough for my needs.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: GUI - Toggle Pulldown Menus

Post by jacky »

TheQwerty wrote:Calling #193; (Save Configuration) eliminates that problem, but then I have never been in the position of not wanting my settings saved.
Well, it does but it's not ideal, because one might not want to save its settings, and also I haven't checked recently, but unless it changed calling #193; and the like will not save your user config, but the current one, e.g. any (temporary) changes done through calling setting will in fact be saved ! Could lead to some unexpected results... (and if your script was called from another one, you have no way of ensuring those settings haven't been changed by the calling scripts) Just something to be aware of....
Proud XYplorer Fanatic

Post Reply