![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
A radio button is a tri-state button. More...
#include <FXRadioButton.h>
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| long | onUpdate (FXObject *, FXSelector, void *) |
| long | onEnter (FXObject *, FXSelector, void *) |
| long | onLeave (FXObject *, FXSelector, void *) |
| long | onFocusIn (FXObject *, FXSelector, void *) |
| long | onFocusOut (FXObject *, FXSelector, void *) |
| long | onUngrabbed (FXObject *, FXSelector, void *) |
| long | onLeftBtnPress (FXObject *, FXSelector, void *) |
| long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
| long | onKeyPress (FXObject *, FXSelector, void *) |
| long | onKeyRelease (FXObject *, FXSelector, void *) |
| long | onHotKeyPress (FXObject *, FXSelector, void *) |
| long | onHotKeyRelease (FXObject *, FXSelector, void *) |
| long | onCheck (FXObject *, FXSelector, void *) |
| long | onUncheck (FXObject *, FXSelector, void *) |
| long | onUnknown (FXObject *, FXSelector, void *) |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| FXRadioButton (FXComposite *p, const FXString &text, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=RADIOBUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
| Construct new radio button. | |
| virtual FXbool | canFocus () const |
| Returns true because a radio button can receive focus. | |
| virtual FXint | getDefaultWidth () |
| Get default width. | |
| virtual FXint | getDefaultHeight () |
| Get default height. | |
| void | setCheck (FXuchar s=TRUE, FXbool notify=false) |
| Set radio button state (TRUE, FALSE or MAYBE) | |
| FXuchar | getCheck () const |
| Get radio button state (TRUE, FALSE or MAYBE) | |
| void | setRadioButtonStyle (FXuint style) |
| Change radio button style. | |
| FXuint | getRadioButtonStyle () const |
| Return current radio button style. | |
| FXColor | getRadioColor () const |
| Get the radio ball color. | |
| void | setRadioColor (FXColor clr) |
| Set the radio ball color. | |
| FXColor | getDiskColor () const |
| Get the radio disk color. | |
| void | setDiskColor (FXColor clr) |
| Set the radio disk color. | |
| virtual void | save (FXStream &store) const |
| Save radio button to a stream. | |
| virtual void | load (FXStream &store) |
| Load radio button from a stream. | |
Protected Attributes | |
| FXColor | radioColor |
| FXColor | diskColor |
| FXuchar | check |
| FXuchar | oldcheck |
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. A group of radio buttons can be made mutually exclusive by linking them to a common data target. Alternatively, an application can implement a common SEL_UPDATED handler to check and uncheck radio buttons as appropriate.
|
|