Is there a scripting command/variable that I can use to script a 'toggle manual sorting' to a button?
I can't seem to find anything in the scripting reference regarding this. Is there somewhere else I should look for these types of info?
Thx
Manual Sorting scripting command
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Manual Sorting scripting command
Hold CTRL and click Help->List All Commands...
in the opened dialog, start typing Manual And only one entry will be left in the list:
418 |#414 Tools | Customize List | Manual Sorting
The number with # (#414) is the id for this command. You can create a button in the toolbar with just this one liner to toggle manual sorting:
but if you want a visual reminder if manual sorting is currently enabled or not, use this script:
(in this case, don't use the "Customize List" menu item, the button on/off state will not update correctly)
similarly, you can call any command from that list by using it's command ID
in the opened dialog, start typing Manual And only one entry will be left in the list:
418 |#414 Tools | Customize List | Manual Sorting
The number with # (#414) is the id for this command. You can create a button in the toolbar with just this one liner to toggle manual sorting:
Code: Select all
#414;Code: Select all
#414;
// state toggle
if (ctbstate() == 1) {
ctbstate(0);
} else {
ctbstate(1);
}similarly, you can call any command from that list by using it's command ID
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
jaywalker32
- Posts: 214
- Joined: 27 May 2014 05:24
Re: Manual Sorting scripting command
Thanks a lot!
Exactly what I was looking for.
Exactly what I was looking for.
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Manual Sorting scripting command
My pleasure! 
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club