Buttons - Drawing on a GDW

<< Click to Display Table of Contents >>

Navigation:  Editing a SpecView Project > Drawing Basics >

Buttons - Drawing on a GDW

Previous pageReturn to chapter overviewNext page

 

Use the Buttons menu item from the Draw Menu OR click the Buttons tool TB_BUTN on the toolbar

 

Go to Drawing Basics for general instructions

Buttons are used for specific actions such as switching to another screen (GDW), controlling Recipes and starting other programs.

The cursor changes to cur_cros Click and hold the left mouse button, then drag the button to the desired size. Click the right mouse button when you have drawn all the buttons you want.

Double-Click the button to edit the Button Attributes

 

Once the Button Attributes have been defined the button can be made to change color on an event using Color Dynamics

 

Buttons can also have multi-line text, different fonts or bitmaps on them.

 

To enter an ampersand '&' enter two ampersands '&&', so 'Gadgets & Widgets' should be typed 'Gadgets && Widgets'.

 

SpecView 3.1.265

 

As of SpecView 3.1.265, SpecView buttons can display live variable values.

To display live variable values, enter the appropriate Variable Substitution String in the Caption area of the Button Attributes box.

 

Example

 

A user wants to display the state of a Boolean variable on a button that toggles the Boolean variable On and Off.

The full name of the Boolean variable is RelayStatus.

 

ButtonVariableSubstitution

 

1.In the Button Attributes box, write the full name of the variable as a Variable Substitution String. In this case it was %%RelayStatus%%.
2.Select the appropriate Button Attribute from the drop down menu.
3.Choose the appropriate variable from the Variables List.

 This step might be optional based on what Button Attribute was selected in Step 2.

4.Click on OK.

 

The button caption will display On or Off depending on the status of the variable.