Add sub-menu support for scripts
Re: Add sub-menu support for scripts
That would be a great start but all kinds of icons would be even better (but I'm afraid that's not possible?)
E.g: From executables, .dll's (with /index) like a multi-script is capable of
E.g: From executables, .dll's (with /index) like a multi-script is capable of
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 65327
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Add sub-menu support for scripts
Here is the current state of affairs. Pretty cool IMO.
item argument has now up to 4 sections: caption;data;icon;state
icon: e.g. ":paper" for the paper folder toolbar icon
state 1 = default (bold)
state 2 = checked
state 4 = disabled
EXAMPLE:
Script:
Resulting Menu:
item argument has now up to 4 sections: caption;data;icon;state
icon: e.g. ":paper" for the paper folder toolbar icon
state 1 = default (bold)
state 2 = checked
state 4 = disabled
EXAMPLE:
Script:
Code: Select all
$menu = <<<MENU
A1
B1;;:paper
B2
Ca1
B3
Cb1;;:paper;2
Cb2;;;4
-
Cb3;Cb3Data;;3
-
B4
A2;;:minitree
-
A3
MENU;
text popupnested($menu);- Attachments
-
- 2016-10-28_133149.png (4.89 KiB) Viewed 2404 times
FAQ | XY News RSS | XY X
Re: Add sub-menu support for scripts
Actually, yeah, that looks really cool!
"icon" can only use toolbar icons then?
"icon" can only use toolbar icons then?
One of my scripts helped you out? Please donate via Paypal
Re: Add sub-menu support for scripts
*dances*
Cool stuff & a great addition to XY's scripting capabilities!!
Cool stuff & a great addition to XY's scripting capabilities!!
One of my scripts helped you out? Please donate via Paypal
-
klownboy
- Posts: 4421
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440
Re: Add sub-menu support for scripts
I'm not speaking for highend, but ideally it would be best to be able to use either an internal XYplorer icon or a icon specified by full path/name or <xyicons>.
I'm late as usual...
I'm late as usual...
Re: Add sub-menu support for scripts
Any chance I can "chain" several popupmainmenu() so to create one button that can substitute the menubar?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Re: Add sub-menu support for scripts
Implemented in UMC 
And no, this is not the native XY context menu
And no, this is not the native XY context menu
One of my scripts helped you out? Please donate via Paypal
Re: Add sub-menu support for scripts
Will this 
Explanation:
Syntax rules for XYplorer Script Files
functionality apply to multi-line script popup menu in the future?popupnested
Explanation:
Syntax rules for XYplorer Script Files
Suppose a new field SubMenuLevel is added like this(3) You can have more than one script inside a script file. In that case, loading the script file will pop up a menu presenting all scripts inside the script file by their captions.
"Caption|Icon|State : Label" Script
. Loading the script file can pop up a nested menu."Caption|Icon|State|SubMenuLevel : Label" Script
Last edited by zhaowu on 29 Oct 2016 02:08, edited 1 time in total.
Re: Add sub-menu support for scripts
Somehow I don't understand the question...
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 65327
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Add sub-menu support for scripts
It's not immediately planned, but passing SubMenuLevel is a good idea.zhaowu wrote:Will thisfunctionality apply to multi-line script popup menu in the future?popupnested
FAQ | XY News RSS | XY X
Re: Add sub-menu support for scripts
Do I understand well? Would it give the possibility like changing a checked menu item to unchecked and vica versa, (seemingly) without leaving the menu? Or am I completely wrong here?admin wrote:It's not immediately planned, but passing SubMenuLevel is a good idea.zhaowu wrote:Will thisfunctionality apply to multi-line script popup menu in the future?popupnestedSo, maybe later...
XYplorer Beta Club