A radio button is a tri-state button. Normally, it is either True or False; a third state MAYBE may be set to indicate that no selection has been made yet by the user, or that the state is ambiguous. When pressed, the radio button sets its state to True and sends a SEL_COMMAND to its target, and the message data set to the state of the radio button, of the type FXbool. If the radio button is contained inside a group box, the other radio buttons in the group box will be set to False and will send a message as well.
Construct new radio button.
Argument | Type | Default | Description |
p | FXComposite | ||
text | String | ||
tgt | FXObject | None | |
sel | Int | 0 | |
opts | Int | RADIOBUTTON_NORMAL | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 | |
pl | Int | DEFAULT_PAD | |
pr | Int | DEFAULT_PAD | |
pt | Int | DEFAULT_PAD | |
pb | Int | DEFAULT_PAD |
Returns True because a radio button can receive focus.
Reimplemented from FXWindow.