Download PDF - Vizrt documentation center

Transcript
Viz Pilot User’s Guide
CheckBox represents a check box that can be on (checked) or off (unchecked).
Notable Properties
• Checked: Specifies whether the check box is checked.
Script Example
The following script example uses a sub procedure and a function. Components used
are; one Unicode button, three Unicode edit fields and two Unicode check boxes.
The Sub procedure TWUniButton1Click calls the function setText using the text string
of the TWUniEdit0 edit field as argument.
Sub TWUniButton1Click(Sender)
setText(TWUniEdit0.UTF8Text)
End sub
The setText function tests to see if the corresponding check boxes are checked. If they
are, newText is assigned to the edit fields.
Function setText (newText)
If TWUniCheckbox1.Checked Then
TWUniEdit1.UTF8Text = newText
End If
If TWUniCheckbox2.Checked Then
TWUniEdit2.UTF8Text = newText
End If
End Function
10.2.9
Unicode Radio Button Component
Radio buttons present a set of mutually exclusive options to the user (i.e. only one
radio button in a set can be selected at a time). When the user selects a radio button,
the previously selected radio button becomes unselected.
To manage more than one set of radio buttons the Unicode GroupBox Component can
be used.
Notable Properties
• Checked: Determines whether the option represented by the radio button is
selected.
• Enabled: Controls whether the radio button is enabled or disabled.
Page 278
Copyright © 2015 Vizrt