Show Submenu Arrows in popupmainmenu for CTB Hamburger Menu
Posted: 07 Oct 2025 11:57
Hello XYPlorer community and Don,
I'm a new user migrating from Total Commander, and I'm impressed by XYPlorer's customization capabilities. I'm working on creating a hamburger menu button (similar to modern applications like eM Client, Firefox, etc.) to save vertical space by hiding the traditional menu bar.
Current Implementation:
I've found a CTB created by another forum user. It uses the popupmainmenu command, which works functionally. However, there's a UX limitation compared to other modern applications.
The Issue:
When using popupmainmenu in a CTB script, the top-level menu items don't display submenu arrows (►), even though deeper submenu levels do show them correctly. This makes it difficult to know which items will expand into submenus versus which will execute immediately.
Comparison with eM Client (see attached screenshot):
eM Client's hamburger menu shows arrows on the top-level items (File ►, Edit ►, View ►, etc.), which provides important visual feedback and allows efficient menu browsing. You can see at a glance which items have submenus without needing to hover over each one and guess.
Current XYPlorer behavior:
Top level: No arrows (you can't tell "File" has a submenu)
Deeper levels: Arrows display correctly ("To Clipboard ►", "Duplicate ►", etc.)
My CTB Script:
"_Initialize"
ctbname("left-click: Main menu<crlf>right-click: Layout menu");
$lclick = '_mainmenu';
$rclick = '_windowmenu';
if (get('trigger') == 1) { load *, $lclick, s; }
elseif (get('trigger') == 2) { load *, $rclick, s; }
end 1;
"MainMenu : _mainmenu"
popupmainmenu;
"windowmenu : _windowmenu"
if (get('Shift') == 1){#1061;}
else {popupmainmenu "window";}
Feature Request:
Would it be possible to enhance popupmainmenu to display submenu arrows at the top level when called from CTB scripts? This would:
Improve discoverability - users can see which items expand
Match modern UI conventions - most hamburger menus show these indicators
Enhance navigation efficiency - no need to hover-and-guess
Provide visual consistency - arrows already appear on deeper levels
Benefits to the Community:
Thank you for considering this request, and thank you for creating such a powerful file manager!
I'm a new user migrating from Total Commander, and I'm impressed by XYPlorer's customization capabilities. I'm working on creating a hamburger menu button (similar to modern applications like eM Client, Firefox, etc.) to save vertical space by hiding the traditional menu bar.
Current Implementation:
I've found a CTB created by another forum user. It uses the popupmainmenu command, which works functionally. However, there's a UX limitation compared to other modern applications.
The Issue:
When using popupmainmenu in a CTB script, the top-level menu items don't display submenu arrows (►), even though deeper submenu levels do show them correctly. This makes it difficult to know which items will expand into submenus versus which will execute immediately.
Comparison with eM Client (see attached screenshot):
eM Client's hamburger menu shows arrows on the top-level items (File ►, Edit ►, View ►, etc.), which provides important visual feedback and allows efficient menu browsing. You can see at a glance which items have submenus without needing to hover over each one and guess.
Current XYPlorer behavior:
Top level: No arrows (you can't tell "File" has a submenu)
Deeper levels: Arrows display correctly ("To Clipboard ►", "Duplicate ►", etc.)
My CTB Script:
"_Initialize"
ctbname("left-click: Main menu<crlf>right-click: Layout menu");
$lclick = '_mainmenu';
$rclick = '_windowmenu';
if (get('trigger') == 1) { load *, $lclick, s; }
elseif (get('trigger') == 2) { load *, $rclick, s; }
end 1;
"MainMenu : _mainmenu"
popupmainmenu;
"windowmenu : _windowmenu"
if (get('Shift') == 1){#1061;}
else {popupmainmenu "window";}
Feature Request:
Would it be possible to enhance popupmainmenu to display submenu arrows at the top level when called from CTB scripts? This would:
Improve discoverability - users can see which items expand
Match modern UI conventions - most hamburger menus show these indicators
Enhance navigation efficiency - no need to hover-and-guess
Provide visual consistency - arrows already appear on deeper levels
Benefits to the Community:
Thank you for considering this request, and thank you for creating such a powerful file manager!