![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
A button provides a push button, with optional icon and/or text label. More...
#include <FXButton.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 | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| FXButton (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=BUTTON_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 button with text and icon. | |
| virtual FXbool | canFocus () const |
| Returns true because a button can receive focus. | |
| virtual void | setFocus () |
| Move the focus to this window. | |
| virtual void | killFocus () |
| Remove the focus from this window. | |
| virtual void | setDefault (FXuchar flag=TRUE) |
| Set as default button. | |
| void | setState (FXuint s) |
| Set the button state. | |
| FXuint | getState () const |
| Get the button state. | |
| void | setButtonStyle (FXuint style) |
| Set the button style flags. | |
| FXuint | getButtonStyle () const |
| Get the button style flags. | |
Protected Attributes | |
| FXuchar | state |
A button provides a push button, with optional icon and/or text label.
When pressed, the button widget sends a SEL_COMMAND to its target. Passing the BUTTON_TOOLBAR style option gives buttons a "flat" look, and causes the edge of the button to be raised when the cursor moves over it. Passing BUTTON_DEFAULT allows the button to become the default button in a dialog, when the focus moves to it. The default widget in a dialog is the widget which will accept the RETURN key when it is pressed. The BUTTON_INITIAL flag makes the button the default widget when the focus moves to a widget which can not itself be a default widget. There should be only a single button in the dialog which is the initial default; typically this is the OK or CLOSE button. The option BUTTON_AUTOGRAY (BUTTON_AUTOHIDE) causes the button to be grayed out (hidden) if its handler does not respond to the SEL_UPDATE message. This is useful when messages are delegated, for example when using a multiple document interface, where the ultimate destination of a message can be changed.
|
|