Custom toolbar button (load script and menu ID)
Posted: 20 Mar 2017 20:51
Within the help-file under the "Toolbar" chapter I read how to create a button.
And
But I could not achieve the below case.
For example, if I want a button with 2 items in it (see below, bold):
(When Config is selected I want to use the menu ID, if possible).
EDIT
An example of what I mean:
But now in the correct syntax (if possible).
So when the custom button is pressed a menu folds out showing: "Config" and "Testscript" and executes/runs their corresponding action.
Code: Select all
"Recent Locations|:mru" button "mru"
"Hotlist|:hotlist" button "hotlist"
-
"CKS|:cks" button "cks"
"UDC|:udc" button "udc"
-
"Exit no save|:exitnosave" button "exitnosave"
Code: Select all
load "test", "foo" //load script labeled "foo" from "test.xys"
For example, if I want a button with 2 items in it (see below, bold):
- Config
When this item is selected, I want the configuration dialog to be opened but using it's ID (Help >> Command ID's on menu) - Testscript
When this item is selected, I want to run a test-script located in: c:\xy\test_123.xys
(When Config is selected I want to use the menu ID, if possible).
EDIT
An example of what I mean:
Code: Select all
Config|#600
Testscript|c:\xy\test_123.xys
So when the custom button is pressed a menu folds out showing: "Config" and "Testscript" and executes/runs their corresponding action.