<< Prev        Next >>

ID : 1880

Text Box

This part is a button that displays a string. Pressing this button switches the pendant operation screen to keyboard input for directly updating that string.

This part has CLICKED and RELEASED events similar to those for buttons.

Text Box Example

Text box can add action source codes of Clicked, Released and Done.

This example shows the way of inputting operator's name and store that value in global string variables S[1] when text box input is completed.

1 Part Placement

Load the editor and place a text box on the panel layout.

2 Changing Text Box Properties

Select the placed text box and change the color, initial value, and other properties. In this case, change the initial value of the "Text" to "Your Name?" to request operators to input.

 

3 Adding Action Source Code

Double-click the text box to open the Source Code Edit window, select PB1 and CLICKED to create the action source code skeleton, and add the following lines.

The procedures for accessing properties are the same as for all other parts.

TB1.text=S[10]

S[11]=TB1.text

 

ID : 1880

<< Prev        Next >>