Number of items in [Visual Filters] menu

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Number of items in [Visual Filters] menu

Post 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:
Attachments
VisualFilters.png
VisualFilters.png (35.72 KiB) Viewed 3227 times

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post 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?

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post by JLoftus »

anyone?

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post 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.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Number of items in [Visual Filters] menu

Post 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?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post 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.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Number of items in [Visual Filters] menu

Post 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; }
One of my scripts helped you out? Please donate via Paypal

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post 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.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Number of items in [Visual Filters] menu

Post 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...
One of my scripts helped you out? Please donate via Paypal

DrChiron
Posts: 40
Joined: 04 Apr 2013 15:01
Location: Los Angeles environs

Re: Number of items in [Visual Filters] menu

Post 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
Retired Hollywood Video Engr
[WinX Home amd64] [XYplorer 20.80.0000]

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Number of items in [Visual Filters] menu

Post by admin »

I'll make it adaptive to screen resolution.

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post by JLoftus »

admin wrote:I'll make it adaptive to screen resolution.
thanks

JLoftus
Posts: 579
Joined: 22 Jan 2014 14:58

Re: Number of items in [Visual Filters] menu

Post 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!

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Number of items in [Visual Filters] menu

Post by admin »

I did it on 20170729, but forgot to add to the change log. :eh:

Post Reply