Custom Toolbar Button Dropdown List

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
hermhart
Posts: 237
Joined: 13 Jan 2015 18:41

Custom Toolbar Button Dropdown List

Post 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)
Windows 11 Pro; 100% scaling

WirlyWirly
Posts: 276
Joined: 21 Oct 2020 23:33
Location: Win 10 @ 100% (3440x1440)

Re: Custom Toolbar Button Dropdown List

Post 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

hermhart
Posts: 237
Joined: 13 Jan 2015 18:41

Re: Custom Toolbar Button Dropdown List

Post 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
Windows 11 Pro; 100% scaling

Post Reply