VtRadioBox(VTCL)

VtRadioBox(VTCL)


VtRadioBox -- create radio box, return widget name

Syntax

VtRadioBox object_name [options]

Description

Creates a RadioBox. Returns the widget name.

Options

-autoSelect boolean (CS)
Works only in character mode. If autoSelect is True, buttons within the radiobox are automatically selected when traversing to them. The selection follows the focus when moving between radio buttons with the arrow keys. This provides behavior equivalent to the Microsoft® Windows radiobox. The default is False.

-callback cmd (C)
Sets the cmd called when a toggle button in the radiobox is selected. This overrides any callback set for the contained toggle buttons.

Additional callback keys:

(selectedWidget
selected toggle button)

value
selected toggle button

-horizontal (CS)
Sets the orientation to horizontal.

-numColumns integer (CS)
Sets the number of columns of objects to integer.

-spacing integer (CS)
Sets the spacing between objects inside a row column.

-value widgetName (CSG)
Turns on the widgetName passed in toggle button.

-vertical (CS)
Sets the orientation to vertical.

See also