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

FXOption Class Reference

Option Menu Button.

#include <FXOptionMenu.h>

Inheritance diagram for FXOption:

FXLabel FXFrame FXWindow FXDrawable FXId FXObject List of all members.

Public Methods

 FXOption (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, 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)
 Constructor.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

virtual FXbool canFocus () const
 Returns true because a menu button can receive focus.

virtual void setFocus ()
 Set focus to this window.

virtual void killFocus ()
 Remove the focus from this window.

virtual ~FXOption ()
 Destructor.