Page 1 of 1

Custom Toolbar Button Dropdown List

Posted: 24 Nov 2025 18:30
by hermhart
I have a few custom toolbar buttons with dropdown menus to them. I am getting confused going back and forth reading the help and trying to understand if my method here is the way that I should be doing it or if there is an easier way, perhaps with popupnested(), so that I can have an indented list to account for different nested levels?

I was playing a little with popupnested(), but things were not coming out right, and the dropdown would show up in the upper left corner of the screen instead of under the toolbar button.

Currently, this is how I am writing the code for the button so that I can launch my other scripts:

Code: Select all

"Sort Clipboard A to Z|<xyicons>\Windows\SortAscending.ico"
 load "Windows_DelimitInformation", "sortAscendingListInClipboard";

"Sort Clipboard Z to A|<xyicons>\Windows\SortDescending.ico"
 load "Windows_DelimitInformation", "sortDescendingListInClipboard";
-
"Miscellaneous"

"Create Directory Structure|<xyicons>\shell32.dll_Icons\shell32.dll_I41a6_0409.ico||+1"
 load "Windows_CreateNestedItems";
"|||+1"
"Branch View Folder Depth|:flatview||+1"
 load "Windows_BranchViewFolderDepth";
Any suggestions?

XYplorer version: 28.00.0700 (x64)

Re: Custom Toolbar Button Dropdown List

Posted: 24 Nov 2025 18:41
by WirlyWirly
You can definitely use popupnested() for a much more flexible menu, here's an example I posted a while back for one of my own menus. It should get you going :tup:

viewtopic.php?p=209093#p209093

Re: Custom Toolbar Button Dropdown List

Posted: 24 Nov 2025 19:03
by hermhart
Thank you for the quick reply! I will give this a shot.

I had tried this one below, but for some reason I had issues. Maybe I just typed something wrong.

viewtopic.php?p=226283#p226283