![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXMenuCheck.h>
Public Member Functions | |
| FXMenuCheck (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 | getBoxColor () const |
| void | setBoxColor (FXColor clr) |
| virtual void | save (FXStream &store) const |
| virtual void | load (FXStream &store) |
The menu check widget is used to change a state in the application from a menu.
Menu checks may reflect the state of the application by graying out, becoming hidden, or by a check mark. When activated, a menu check sends a SEL_COMMAND to its target; the void* argument of the message contains the new state.
| FX::FXMenuCheck::FXMenuCheck | ( | FXComposite * | p, |
| const FXString & | text, | ||
| FXObject * | tgt = NULL, |
||
| FXSelector | sel = 0, |
||
| FXuint | opts = 0 |
||
| ) |
Construct a menu check.
| virtual FXint FX::FXMenuCheck::getDefaultWidth | ( | ) | [virtual] |
Return default width.
Reimplemented from FX::FXMenuCommand.
| virtual FXint FX::FXMenuCheck::getDefaultHeight | ( | ) | [virtual] |
Return default height.
Reimplemented from FX::FXMenuCommand.
| void FX::FXMenuCheck::setCheck | ( | FXbool | s = TRUE | ) |
Set check state (TRUE, FALSE or MAYBE)
| FXbool FX::FXMenuCheck::getCheck | ( | ) | const [inline] |
Get check state (TRUE, FALSE or MAYBE)
| FXColor FX::FXMenuCheck::getBoxColor | ( | ) | const [inline] |
Get the box background color.
| void FX::FXMenuCheck::setBoxColor | ( | FXColor | clr | ) |
Set the box background color.
| virtual void FX::FXMenuCheck::save | ( | FXStream & | store | ) | const [virtual] |
Save menu to a stream.
Reimplemented from FX::FXMenuCommand.
| virtual void FX::FXMenuCheck::load | ( | FXStream & | store | ) | [virtual] |
Load menu from a stream.
Reimplemented from FX::FXMenuCommand.
|
|