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

FX::FXMenuRadio Class Reference

The menu radio widget is used to invoke a command in the application from a menu. More...

#include <FXMenuRadio.h>

Inheritance diagram for FX::FXMenuRadio:

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

List of all members.

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)


Detailed Description

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.


Constructor & Destructor Documentation

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

Construct a menu radio.


Member Function Documentation

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.

Copyright © 1997-2005 Jeroen van der Zijp