Controls > Advanced Controls > Radio Button > Radio Button Format Properties
Radio Button Format Properties
LeftText
Sets or gets a value that determines whether the radio button's caption is left aligned.
JScript
var bMode = RadioBtn.LeftText();
RadioBtn.LeftText(bMode);
VBscript
bMode = RadioBtn.LeftText
RadioBtn.LeftText = bMode
Element
Description
bMode
true—indicates that the caption is left-aligned.
false—indicates that the caption is not left-aligned.
Text
Sets or gets the caption of the radio button. It can be set using the Properties tab or dynamically at run-time.
Accommodates the conversion of legacy scripts. This property has the same behavior as AddButton. It is recommended to use the AddButton property.
Using the Text property in the start event will set the caption only for the first button in the radio button control. Using it in the Exec event will change the caption of the buttons as you select them.
JScript
var stringText = RadioBtn.Text();
RadioBtn.Text(stringText);
VBscript
stringText = RadioBtn.Text
RadioBtn.Text = stringText
Element
Description
stringText
A string that indicates the radio button's caption.
Orientation
Gets or sets the orientation, horizontal or vertical, of the radio buttoncontrol. This property can also be accessed via the Properties tab.
JScript
var bMode = RadioBtn.Orientation();
RadioBtn.Orientation(bMode);
VBscript
bMode = RadioBtn.Orientation
RadioBtn.Orientation = bMode
Element
Description
bMode
0 = horizontal radio button, 1 = vertical radio button.
Was this helpful?