Page 1 of 1

Hamburger - Nested Menus

Posted: 09 May 2019 18:12
by VeeGee
Good afternoon,
Would it be possible to look into the option of adding one-level nested menu for the Hamburger ? In this example, the Move and Copy Options text would be at the "root" of the menu and the entries with a > prefix would be nested. The nesting would stop when it encounters a line w/o the > prefix.

Code: Select all

-
::Move and Copy Options; (at the root)
>::Move to Parent;moveto "..\", ":list"; (nested)
>::Copy to Parent;copyto "..\", ":list";(nested)
>::Move to Updates;moveto "X:\Updates\", ":list";(nested)
- (back to the root)
#1401;
::Move File to Folder;load "MoveFileToFolder.xys";
#1403;
-
I know you mentioned that this option may not get too fancy; however, it is such a fantastic addition to XY I wanted to at least put in a request.

Re: Hamburger - Nested Menus

Posted: 10 May 2019 12:16
by MBaas
+1 ;-)

Re: Hamburger - Nested Menus

Posted: 05 Jun 2019 15:56
by admin
I'll think about it...

Re: Hamburger - Nested Menus

Posted: 05 Jun 2019 16:22
by MBaas
Since it's a proven fact that great minds think alike, it is only the paranoid part of me that wants to state that this user often longed for submenus on custom toolbar buttons :whistle:

Re: Hamburger - Nested Menus

Posted: 06 Jun 2019 09:20
by admin
Next beta you just do something like this:

Code: Select all

Move and Copy Options
  ::Move to Parent;moveto "..\", ":list"
  ::Copy to Parent;copyto "..\", ":list"
  ::Move to Updates;moveto "X:\Updates\", ":list"
-
::Move File to Folder;load "MoveFileToFolder.xys";

Re: Hamburger - Nested Menus

Posted: 06 Jun 2019 10:08
by MBaas
Yeah! :appl:

Re: Hamburger - Nested Menus

Posted: 06 Jun 2019 14:29
by VeeGee
Thank you so much ! This is going to be great. The hamburger menu is my go-to for nearly everything I do in XY.

Re: Hamburger - Nested Menus

Posted: 06 Jun 2019 14:40
by MBaas
> The hamburger menu is my go-to for nearly everything I do in XY.

Thanks for the inspiration! It definitely has the potential to grow now ;-)

Re: Hamburger - Nested Menus

Posted: 07 Jun 2019 12:05
by MBaas
@Don: I'd like to use a external icon for a menu - is that possible?

Tried: "Repos;;:%iconlib%\git.ico" - but I did not do anything...(pasting this into address bar navigates to the file, so it exists).

Re: Hamburger - Nested Menus

Posted: 07 Jun 2019 12:36
by admin
MBaas wrote: 07 Jun 2019 12:05 @Don: I'd like to use a external icon for a menu - is that possible?

Tried: "Repos;;:%iconlib%\git.ico" - but I did not do anything...(pasting this into address bar navigates to the file, so it exists).
Try it without the colon (this is only for toolbar buttons): Repos;;%iconlib%\git.ico

Re: Hamburger - Nested Menus

Posted: 07 Jun 2019 15:20
by MBaas
Aaah - thanks! :tup:

Re: Hamburger - Nested Menus

Posted: 07 Jun 2019 16:09
by MBaas
Can the "Customize Menu"-Item also be launched using a #nr? Is there any way I could find that nr? (And to extend that q: how could I find the # of any menu-item? Or the names of internal icons?)

Re: Hamburger - Nested Menus

Posted: 07 Jun 2019 16:29
by admin
1. No.

2. Command #-IDs: Help | List All Commands...

3. Button keys: Hold CTRL while clicking Tools | Customize Toolbar...