"text"

Allows setting the label text for a specific box option or reading a specific option.

Synopsis

setValue(string shape, "text", int n, string s);

shape.text(int n, string s);

Parameters

Parameter Description
shape Name of the object
n Index of the box option, starting with 0
s Text

Description

This attribute is used to set the label text for a specific option in the radio box whereby "n" is the number of the option and "s" the new text for the label.

Note: To add an "&" character to the text, the notation "&&" must be used. A single "&" will add an underline to the following character.

Example

Sets the label for the 3rd option of the "RADIO_BOX1" radio box to "Test".

main()
{
  RADIO_BOX1.text(2)="Test";
}

Reads the first and the second option of an radio box.

main()
{
  DebugN(RADIO_BOX1.text(0));
  DebugN(RADIO_BOX1.text(1));
}

Assignment

Radio box