Page 1 of 1
How to better indicate curitem?
Posted: 06 Mar 2016 11:03
by MBaas
Depending on time of day, screen-resolution etc., I sometimes find it hard to quickly find the focused item in the listview.
2016-03-06_10-56-17.png
I tried to assign the color in Config>Colors>List>Browse>"Focused item", but this setting seems to be ignored. Is that a bug or an intended feature or are there perhaps interdependencies with other settings?
2016-03-06_11-00-14.png
Re: How to better indicate curitem?
Posted: 06 Mar 2016 11:08
by bdeshi
Tools > Customize list > Highlight focused item
Re: How to better indicate curitem?
Posted: 06 Mar 2016 11:12
by MBaas
Options, options, options - hidden all over the place ;-)
Thanks very much - looks much better now!
Re: How to better indicate curitem?
Posted: 07 Mar 2016 15:18
by aurumdigitus
Depending on the work at hand am frequently in this area making adjustments.
It would be an improvement if the list did
not auto-close after the addition/removal of each and every checkmark.
Possible?

Re: How to better indicate curitem?
Posted: 07 Mar 2016 15:38
by admin
Not possible.
But there is faster access to that list if you go via right-clicking one of the Toolbar buttons that toggle items on this list, e.g. "Show Grid" or "Checkbox Selection" or "Sticky Selection".
Re: How to better indicate curitem?
Posted: 07 Mar 2016 15:56
by aurumdigitus
As you are aware from our previous exchanges am reticent about adding buttons to the TB. However, this is a good tip to know as when needing frequent adjustments the presence of the button on a temporary basis is worth it. Thanks for the "heads up".

Re: How to better indicate curitem?
Posted: 07 Mar 2016 15:57
by admin
You can also assign a KS to that submenu...
Re: How to better indicate curitem?
Posted: 07 Mar 2016 16:45
by TheQwerty
aurumdigitus wrote:Depending on the work at hand am frequently in this area making adjustments.
It would be an improvement if the list did
not auto-close after the addition/removal of each and every checkmark.
Possible?

Since v16.30.0013 you can use something like this:
Code: Select all
"Quick CID-Script"
// Prefix of commands to present.
$prefix = 'Tools | Customize List | ';
// Get all commands (requires v16.30.0013+)
$list = Get('ListOfCommands', 1);
// Filter by prefix.
$list = FormatList($list, 'f', <crlf>, "*<tab>$prefix*");
// Remove any submenus under prefix.
$list = FormatList($list, 'f', <crlf>, "!*- submenu -*<crlf>*|*|*|*");
// Clean the display by removing prefix text.
$list = Replace($list, $prefix);
// Show selection box.
$list = InputSelect('Select to Toggle', $list, <crlf>, 2+4+64);
// Reduce to CID-script.
$list = RegexMatches($list, '^#\d+', ';') . ';';
// Run script.
Load $list,, 's';
I'm not entirely happy with this though because there is currently no easy way to determine the state of these toggles so that you can show the current configuration within the selection list. (You'd have to save INI files, read the value, and then decode it - not impossible just not without its own headaches.)
More ugly but state-aware would be this:
Code: Select all
while (true) { status 'Hold Escape to stop script....'; #400; wait 500; }
To escape the endless menu hold Escape as the status bar says.
Re: How to better indicate curitem?
Posted: 07 Mar 2016 17:02
by admin
Wow, not sure why but I want to call this approach "aztec scripting".
Re: How to better indicate curitem?
Posted: 07 Mar 2016 19:38
by aurumdigitus
TheQwerty wrote: while (true) { status 'Hold Escape to stop script....'; #400; wait 500; }
Another one-line solution so clever it verges on being painful!
Admin wrote:... but I want to call this approach "aztec scripting".
How much coding did the Aztecs do?

Re: How to better indicate curitem?
Posted: 07 Mar 2016 20:22
by klownboy
Hi TheQwerty, very nice use and breakdown of your requested SC get('ListofCommands'). As you said, too bad there wasn't a more convenient way to get the current status, but still very cool.
aurumdigitus wrote:How much coding did the Aztecs do?
I'm not sure about the Aztecs but I read somewhere that the Mayans were computer wizards.
