RadioButton

Help Contents GUI programming RadioButtons RadioButton
RadioButtons RadioButtonDestroy

RadioButton parent label onclick
(RadioButton parent label onclick style pos size)


outputs a new RadioButton on the parent (a Frame or a Graph),

having the text label on it,

and running the onclick instructionlist when the user clicks with the mouse on it.



style can be a combination (use +) of the following constants:

wxRB_GROUP Marks the beginning of a new group of radio buttons.

wxRB_SINGLE In some circumstances, radio buttons that are not consecutive siblings trigger a hang bug in Windows (only). If this happens, add this style to mark the button as not belonging to a group, and implement the mutually-exclusive group behaviour yourself.

wxRB_USE_CHECKBOX Use a checkbox button instead of radio button (currently supported only on PalmOS).



pos is the position of the Button (a list of two integer numbers, x and y),

size is the size of the Button (again a list of two integer numbers, width and height).

Examples:

rb1=(RadioButton [][PenPaint]
[	if RadioButtonValue rb1 [PenPaint setPC 0]
] wxRB_GROUP)
rb2=(RadioButton [][PenErase]
[	if RadioButtonValue rb2 [PenErase]
] 0 [0 30])
rb3=(RadioButton [][PenReverse]
[	if RadioButtonValue rb3 [PenReverse]
] 0 [0 60])

Examples:

References:

RadioButtons RadioButtonDestroy