...
Note:button will be disable if LabTalk variable is not defined or contains missing value
Examples:
1.press down/up states
1.a. Create a ogs file and save with follow script as toggle button.ogs.
...
2.c Fill State:1 in Labtalk Variable to toggle.close dialog,drag button to origin workspace.
12.d Run "state=0;" in script window, button is enable now, click it, button icon become the next button icon in the bitmap.