Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMenuCheck Class Reference

The menu check widget is used to change a state in the application from a menu. More...

#include <FXMenuCheck.h>

Inheritance diagram for FX::FXMenuCheck:

FX::FXMenuCommand FX::FXMenuCaption FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

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 (FXuchar s=TRUE)
FXuchar getCheck () const
FXColor getBoxColor () const
void setBoxColor (FXColor clr)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)


Detailed Description

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.


Constructor & Destructor Documentation

FX::FXMenuCheck::FXMenuCheck ( FXComposite p,
const FXString text,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0 
)

Construct a menu check.


Member Function Documentation

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 ( FXuchar  s = TRUE  ) 

Set check state (TRUE, FALSE or MAYBE).

FXuchar 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.

Copyright © 1997-2009 Jeroen van der Zijp