Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXToggleButton.h>
Inheritance diagram for FX::FXToggleButton:
Public Member Functions | |
FXToggleButton (FXComposite *p, const FXString &text1, const FXString &text2, FXIcon *icon1=NULL, FXIcon *icon2=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TOGGLEBUTTON_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) | |
virtual void | create () |
virtual void | detach () |
virtual FXbool | canFocus () const |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
void | setAltText (const FXString &text) |
FXString | getAltText () const |
void | setAltIcon (FXIcon *ic) |
FXIcon * | getAltIcon () const |
void | setState (FXbool s=TRUE) |
FXbool | getState () const |
void | setAltHelpText (const FXString &text) |
FXString | getAltHelpText () const |
void | setAltTipText (const FXString &text) |
FXString | getAltTipText () const |
void | setToggleStyle (FXuint style) |
FXuint | getToggleStyle () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXToggleButton () |
For each state, the toggle button has a unique icon and text label. When pressed, the button widget sends a SEL_COMMAND to its target, with the message data set to the current state of the toggle button, of the type FXbool.
See also:
|
Construct toggle button with two text labels, and two icons, one for each state.
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXLabel. Reimplemented in FX::FXTriStateButton. |
|
Detach server-side resources.
Reimplemented from FX::FXLabel. Reimplemented in FX::FXTriStateButton. |
|
Returns true because a toggle button can receive focus.
Reimplemented from FX::FXWindow. |
|
Get default width.
Reimplemented from FX::FXLabel. Reimplemented in FX::FXTriStateButton. |
|
Get default height.
Reimplemented from FX::FXLabel. Reimplemented in FX::FXTriStateButton. |
|
Change alternate text shown when toggled.
|
|
Return alternate text.
|
|
Change alternate icon shown when toggled.
|
|
Return alternate icon.
|
|
Change toggled state.
|
|
return toggled state
|
|
Change alternate help text shown when toggled.
|
|
Return alternate help text.
|
|
Change alternate tip text shown when toggled.
|
|
Return alternate tip text.
|
|
Set the toggle button style flags.
|
|
Get the toggle button style flags.
|
|
Save toggle button to a stream.
Reimplemented from FX::FXLabel. Reimplemented in FX::FXTriStateButton. |
|
Load toggle button from a stream.
Reimplemented from FX::FXLabel. Reimplemented in FX::FXTriStateButton. |
Copyright © 1997-2005 Jeroen van der Zijp |