Page 1 of 1
Number of items in [Visual Filters] menu
Posted: 11 Jul 2017 11:31
by JLoftus
Is it possible to change the number of menu items shown in a given drop down? The number of Visual Filters menu appears to be limited to 16 custom entries, I have a very high resolution display and thus I have room for more vertical items.
If it is not possible to display more than 16, how do you access them from the menu? The edit window allows more entries, but I can't figure out how to access them.
Example below, I have several items after "Yellow" (Ants, Bees, Crickets) but they cannot be accessed from the menu:
Re: Number of items in [Visual Filters] menu
Posted: 13 Jul 2017 12:46
by JLoftus
Anyone have any ideas? @Don, seems almost like a bug or oversight that the menu editor allows more than 16 entries but the menu doesn't offer a way to get to any after the 16th? Maybe I am missing something obvious?
Re: Number of items in [Visual Filters] menu
Posted: 17 Jul 2017 20:06
by JLoftus
anyone?
Re: Number of items in [Visual Filters] menu
Posted: 17 Jul 2017 23:46
by JLoftus
Was hoping the "Minor bug fixes and enhancements." release note for 18.10.0003 was going to address this, but the issue persists. I think this is actually a bug, since the editor allows adding more than 16 items, but you cannot access them in any way from the menu, the items beyond 16 are useless. Instant filter is great, but in a list of 5000 items, that doesn't really help to make the view manageable, this is where visual filters shines. Don, please consider providing a way to allow the context menu to show more than 16 entries --- or provide an elipses ("...") menu item to pop a submenu, etc. so you can get to these inaccessible entries. thanks.
Re: Number of items in [Visual Filters] menu
Posted: 18 Jul 2017 19:35
by SkyFrontier
A quick look into the issue and script tech tells me this could be circumvented, more or less reproducing the same menu at least when it comes to the described issue.
Interested?
Re: Number of items in [Visual Filters] menu
Posted: 18 Jul 2017 20:08
by JLoftus
I am, thank you. I'd definitely like Don's take on it, as it seems if there's a hard limit to the number of entries AND that you can't access items in excess of that limit, that the entry form for adding items should not allow exceeding the limit. I'd also suspect that if we look around, there may be other custom entry forms with similar behavior.
That said, if you have a workaround until/unless Don has input (pun intended) then yes, I'd like to test that.
Re: Number of items in [Visual Filters] menu
Posted: 18 Jul 2017 20:54
by highend
Too lazy to recreate the full menu. But this would show you all
visual filters above 16 in a popup menu...
Code: Select all
$tmpSettings = "%TEMP%\~xysettings.ini";
savesettings 1, $tmpSettings;
$count = getkey("Count", "mruVisualFilter", $tmpSettings);
if ($count > 16) {
$filters = getsectionlist("mruVisualFilter", $tmpSettings);
// Remove Count + the first 16 entries
$filters = regexreplace($filters, "^([0-9]|1[0-6]|Count)=.*\r?\n");
// Remove the prefix
$filters = regexreplace($filters, "^\d+=");
// Unquote the items
$filters = regexreplace($filters, "^[""]|[""]$");
}
$filter = popupmenu($filters, , , , , , <crlf>, "<::>");
if ($filter) { filter $filter, 1; }
Re: Number of items in [Visual Filters] menu
Posted: 19 Jul 2017 01:04
by JLoftus
Thanks @highend, this works well to popup a context menu with the "missing" extra entries...
Do you think it's possible to somehow merge this into the existing context menu? Ideally, to add this dynamic popup as the "17th" entry under the fixed list? I think, this would be the most optimal implementation second only to having the number of items itself configurable.
Re: Number of items in [Visual Filters] menu
Posted: 19 Jul 2017 01:06
by highend
You can't modify XY's internal context menus, so no, not possible
Ofc you could recreate the full menu with all filters above 16 as a plus,
as a user script but I'm confident that Don will lift the current limitation
so it would be a lot of effort that would (probably) only last for a very
limited time...
Re: Number of items in [Visual Filters] menu
Posted: 22 Jul 2017 17:27
by DrChiron
Greetings,
Suggestion:
If there are more than 16 items in a menu drop-down list; when you reach the bottom of the list the entire list could scroll until the end of the list is reached. doc
Re: Number of items in [Visual Filters] menu
Posted: 29 Jul 2017 15:54
by admin
I'll make it adaptive to screen resolution.
Re: Number of items in [Visual Filters] menu
Posted: 30 Jul 2017 15:36
by JLoftus
admin wrote:I'll make it adaptive to screen resolution.
thanks
Re: Number of items in [Visual Filters] menu
Posted: 26 Aug 2017 13:25
by JLoftus
Just noticed I am now seeing more than 16 entries, not sure when you found time to fit this in, but thanks Don!
Re: Number of items in [Visual Filters] menu
Posted: 26 Aug 2017 13:47
by admin
I did it on 20170729, but forgot to add to the change log.
