Page 2 of 2
Re: script hide all gui toolbars?
Posted: 11 Nov 2013 14:21
by klownboy
CookieMonster wrote:I copied the above code into a script button, when I ran the script I got errors, How do I add such a menu ?
Hi CookieMonster, I just copied the posted code and put it in a normal left click of a CTB and it ran fine. Make a new CTB and then in the edit box, provide a name and an icon and click on "edit" to the right of the "On left click" box and paste/insert the posted script. Another way would be to copy the script into a new script file and then just reference the new script file in the On left click edit box (e.g., load("<xyscripts>\MiscCommandsButton.xys");) Please make sure you have no spaces before the lines in the code since it's essentially a menu , the lines have to start at the beginning of the line. I only provided some of the buttons to minimize space.
As totmad1 suggested in his link and the link I provided, there are numerous ways, some much more advanced, to accomplish something similar to what you want. XY scripting can be very powerful.
Good luck,
Ken
Re: script hide all gui toolbars?
Posted: 12 Nov 2013 16:38
by CookieMonster
This is exactly what I wanted for a long time. Except can I access the script via right click anywhere in any pane ? And can the font size and icon size be changed ?
Re: script hide all gui toolbars?
Posted: 12 Nov 2013 20:17
by klownboy
I don't believe there's anyway to have the menu pop up (immediately anyway) on a right click anywhere within XYplorer. What I do is have the my most frequently used menu pop-up on a right-click of a CTB and also have it assigned to a key on the keyboard that's not normally used, like "numpad 1", so I can access the menu either from the keyboard or mouse via a CTB.
You can change the size on the ToolBar menu icons via the CUstomize Toolbar menu, but you can't customize the icon size in your script menus.
Re: script hide all gui toolbars?
Posted: 14 Nov 2013 21:17
by CookieMonster
How can I add sub-menus the menu and where can I find the correct commands to add what I want to the menu ?
For example;
"Up|:up" button "up"
Re: script hide all gui toolbars?
Posted: 15 Nov 2013 12:30
by klownboy
Take a look at this thread for some information on submenus
http://www.xyplorer.com/xyfc/viewtopic. ... it=submenu or do searches for "submenu". The submenu will not automatically fan-out when you hover over a submenu title in the mainmenu however.
For those commands you want for your menu, Control-right click on one of your user CTBs (not a XYplorer factory button) and click on "Customize Toolbar..." and you will then see all those commands that you can use in brackets [XXXX]
Re: script hide all gui toolbars?
Posted: 15 Nov 2013 22:36
by CookieMonster
klownboy wrote:Take a look at this thread for some information on submenus
http://www.xyplorer.com/xyfc/viewtopic. ... it=submenu or do searches for "submenu". The submenu will not automatically fan-out when you hover over a submenu title in the mainmenu however.
For those commands you want for your menu, Control-right click on one of your user CTBs (not a XYplorer factory button) and click on "Customize Toolbar..." and you will then see all those commands that you can use in brackets [XXXX]
The sub-menu will fan out, just not automatically ?
CTB's ?
Re: script hide all gui toolbars?
Posted: 16 Nov 2013 12:33
by klownboy
CookieMonster wrote:
The sub-menu will fan out, just not automatically ?
By that I mean you have to actually click on the sub-menu title in the main menu for the sub-menu to display, as opposed to it automatically displaying when you hover over the sub-menu title for a second or two. Typically most specifically written menu programs will do that.
CTB stands for Customized Toolbar Button, the icons you see on the toolbar. You can add your own, which you may or may not have done. Please search in the help file for "toolbar" and then scroll down to Custom Toolbar Buttons.
Re: script hide all gui toolbars?
Posted: 19 Nov 2013 03:35
by CookieMonster
Code: Select all
"Group A"
$c = "zoomin|:zoomin" copytext ":zoomin";
load ("$c", , s);
I took a shot at it, the Group name is showing up, the menu items are not ?