![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXMenuRadio.h>
Public Member Functions | |
FXMenuRadio (FXComposite *p, const FXString &text, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0) | |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
void | setCheck (FXbool s=TRUE) |
FXbool | getCheck () const |
FXColor | getRadioColor () const |
void | setRadioColor (FXColor clr) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
The menu radio widget is used to invoke a command in the application from a menu.
Menu commands may reflect the state of the application by graying out, becoming hidden, or by a bullit. When activated, a menu radio sends a SEL_COMMAND to its target; the void* argument of the message contains the new state. A collection of menu radio widgets which belong to each other is supposed to be updated by a common SEL_UPDATE handler to properly maintain the state between them.
FX::FXMenuRadio::FXMenuRadio | ( | FXComposite * | p, |
const FXString & | text, | ||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = 0 |
||
) |
Construct a menu radio.
virtual FXint FX::FXMenuRadio::getDefaultWidth | ( | ) | [virtual] |
Return default width.
Reimplemented from FX::FXMenuCommand.
virtual FXint FX::FXMenuRadio::getDefaultHeight | ( | ) | [virtual] |
Return default height.
Reimplemented from FX::FXMenuCommand.
void FX::FXMenuRadio::setCheck | ( | FXbool | s = TRUE | ) |
Set radio button state (TRUE, FALSE or MAYBE)
FXbool FX::FXMenuRadio::getCheck | ( | ) | const [inline] |
Get radio button state (TRUE, FALSE or MAYBE)
FXColor FX::FXMenuRadio::getRadioColor | ( | ) | const [inline] |
Get the radio background color.
void FX::FXMenuRadio::setRadioColor | ( | FXColor | clr | ) |
Set the radio background color.
virtual void FX::FXMenuRadio::save | ( | FXStream & | store | ) | const [virtual] |
Save menu to a stream.
Reimplemented from FX::FXMenuCommand.
virtual void FX::FXMenuRadio::load | ( | FXStream & | store | ) | [virtual] |
Load menu from a stream.
Reimplemented from FX::FXMenuCommand.
![]() |