ORG-11096
A Toggle Button displays checked/unchecked states as a button
Origin 2015 support add an text box named "labtalk Variable to toggle" in the Button Settings dialog.The variable can be pass to script file.
Labtalk Variable | Description | |
---|---|---|
state:1 or state | button will be toggled between states that is pressed-down or not pressed-down | |
state:2,state:3,etc | button has 2/3 states, icon image will use itself by default and another one/two following in the bitmap |
Note:button will be disable if LabTalk variable is not defined or contains missing value
...
- Open the Customize Toolbar dialog box (View:Toolbars) and select the Button Groups tab.
- Select the User Defined button group from the Groups list.
- Select a button in the Buttons group.
- Click on the Settings button in the Button group. This opens the Button Settings dialog box.
Examples:
Download Toggle Button.opx and play.
...
2.c Fill State:1 in Labtalk Variable to toggle text box.set section name as Main,close dialog,drag button to origin workspace.
...