Boolean controls that display text are called labeled buttons. Initially, the buttons display the word ON in the TRUE state and the word OFF in the FALSE state. When you click the button with the Operating tool, the control toggles to the opposite state.
By default, the label centers on the button. Complete the following steps to practice manipulating the label.
Place a Controls»Boolean»Push Button on the front panel.
Right-click the button and select Visible Items»Boolean Text. The word Off appears on the Boolean button.
With the Positioning tool, select the text and move it to the location you want. Or you can select Lock Text in Center from the shortcut menu to return the text to its default location. To unlock the text, right-click the Boolean button and select Release Text from the shortcut menu.
Use the Labeling tool to change the text in either state. For example, enter YES instead of ON.
Select the Boolean text and use the Font pull-down menu on the toolbar to change the font, size, and color of the text.
Hide the Boolean text from both states by right-clicking the button and selecting Visible Items»Boolean Text from the shortcut menu.
By default, you can change the label for each state of labeled buttons located on the Controls»Classic Controls»Boolean palette. To do so for labeled buttons such as OK and Cancel buttons located on the Controls»Boolean palette, you must edit the button to allow different text strings for each state.
Complete the following steps to edit a labeled button to allow multiple text strings.
Right-click the button and select Advanced»Customize from the shortcut menu to display the Control Editor.
In the Control Editor, right-click the button and select Multiple Text Strings from the shortcut menu.
Select File»Apply Changes.
If you want to use the button in other VIs, save it as a custom control. Refer to the Custom Controls and Type Definitions Application Note for more information about customizing front panel objects.