Page 1 of 4

Hamburger - the new tool

Posted: 12 Jul 2017 16:51
by Irwin of Upton
As this has just been rolled out have not had time to learn all the syntax details yet.

With that admission could someone show how to add an icon to this #102 from Customize Menu:

Code: Select all

-
:newfolder
#102
:copypath
-

Re: Hamburger - the new tool

Posted: 12 Jul 2017 17:19
by admin
Which icon do you want?

Re: Hamburger - the new tool

Posted: 13 Jul 2017 14:54
by Irwin of Upton
Oh boy, complicated already. How about this one:

C:\Users\Owner\AppData\Roaming\XYplorer\Icons\Hello.ico

Re: Hamburger - the new tool

Posted: 13 Jul 2017 15:37
by admin

Code: Select all

#102;;Hello.ico

Re: Hamburger - the new tool

Posted: 13 Jul 2017 15:47
by Irwin of Upton
Thank you for the assistance. Not as bad as had been feared. At this rate the hamburger will soon become
a Big Mac! :appl:

Re: Hamburger - the new tool

Posted: 13 Jul 2017 15:50
by highend
The changelog states that the syntax is from popupmenu (v18.00.0007 - 2017-06-15 12:23)

but popupmenu() uses
Caption;Data;Icon;State?

Re: Hamburger - the new tool

Posted: 13 Jul 2017 16:02
by admin
Yes. That's what I did: #102;;Hello.ico (Data and State are omitted).

Re: Hamburger - the new tool

Posted: 13 Jul 2017 16:11
by highend
But e.g. in popupnested (same syntax as in popupmenu)you can do it like this
(again: caption;data;icon;state, state is omitted here):

Code: Select all

Name(s), Bytes, Modified;#104;:favs
So how do you use a caption, the command and an icon inside the hamburger menu
for a single entry?

Re: Hamburger - the new tool

Posted: 13 Jul 2017 16:15
by admin
You mean you want to define a custom caption for a command:

Code: Select all

My Caption;#102;Hello.ico
?

Re: Hamburger - the new tool

Posted: 13 Jul 2017 16:18
by highend
Exactly

Re: Hamburger - the new tool

Posted: 13 Jul 2017 16:29
by admin
OK, when I saw "#102" gives "Item Name(s)" I saw the need for this. "Item Name(s)" is meaningless without its parent menu "To Clipboard".

I'll try to add that. I guess any original KS should stay in place in the menu item caption, since however you call it, the KS will call the function behind it (#102).

Re: Hamburger - the new tool

Posted: 13 Jul 2017 18:58
by highend
New beta works fine this, thanks!

Re: Hamburger - the new tool

Posted: 13 Jul 2017 19:29
by Irwin of Upton
Bravo! Now the Hamburger come with Fries. :D
+ SC popupmenu/popupnested enhanced: Now you can define custom captions for
menu commands defined as XYplorer Menu Commands or Toolbar Buttons. Simply
put the definition in the "data" part of the item definition
(Caption;Data;Icon;State).

Re: Hamburger - the new tool

Posted: 13 Jul 2017 22:19
by yusef88
after adding caption and icon the command doesn't work

Code: Select all

Delete Current Folder;::delete 1, 1, <curpath>;:del
before is working

Code: Select all

::delete 1, 1, <curpath>

Re: Hamburger - the new tool

Posted: 13 Jul 2017 22:45
by admin
The new option is only for menu commands defined as XYplorer Menu Commands or Toolbar Buttons.

Script captions in menus can be set like this:

Code: Select all

::Caption;Script
Example:

Code: Select all

popupmenu("::Hi;echo 'hi'|::Ho;echo 'ho'");