Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

 

How to

  1. Open the Customize Toolbar dialog box (View:Toolbars) and select the Button Groups tab.
  2. Select the User Defined button group from the Groups list.
  3. Select a button in the Buttons group.
  4. Click on the Settings button in the Button group. This opens the Button Settings dialog box.

          Image Removed

Labtalk Variable
Description
state:1 or statebutton will be toggled between states that is pressed-down or not pressed-down
state:2,state:3,etcbutton 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

 

How to

  1. Open the Customize Toolbar dialog box (View:Toolbars) and select the Button Groups tab.
  2. Select the User Defined button group from the Groups list.
  3. Select a button in the Buttons group.
  4. Click on the Settings button in the Button group. This opens the Button Settings dialog box.

          Image Added

Examples:

    1.press down/up states

...

1.c Fill State:1 in Labtalk Variable to toggle text box.close dialog,drag button to origin workspace.

...

2.c Fill State:1 in Labtalk Variable to toggletoggle text box.close dialog,drag button to origin workspace.

2.d Run "state=0;" in script window, button is enable now, click it, button icon become the next button icon in the bitmap.
Image Added