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

FX::FXOption Class Reference

Option Menu Button. More...

#include <FXOptionMenu.h>

Inheritance diagram for FX::FXOption:

FX::FXLabel FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXOption (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT, 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)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual bool canFocus () const
virtual void setFocus ()
virtual void killFocus ()
void setSelBackColor (FXColor clr)
FXColor getSelBackColor () const
void setSelTextColor (FXColor clr)
FXColor getSelTextColor () const
virtual ~FXOption ()

Detailed Description

Option Menu Button.

Constructor & Destructor Documentation

FX::FXOption::FXOption FXComposite p,
const FXString text,
FXIcon ic = NULL,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_PAD,
FXint  pr = DEFAULT_PAD,
FXint  pt = DEFAULT_PAD,


virtual FX::FXOption::~FXOption  )  [virtual]


Member Function Documentation

virtual FXint FX::FXOption::getDefaultWidth  )  [virtual]

Return default width.

Reimplemented from FX::FXLabel.

virtual FXint FX::FXOption::getDefaultHeight  )  [virtual]

Return default height.

Reimplemented from FX::FXLabel.

virtual bool FX::FXOption::canFocus  )  const [virtual]

Returns true because a menu button can receive focus.

Reimplemented from FX::FXWindow.

virtual void FX::FXOption::setFocus  )  [virtual]

Set focus to this window.

Reimplemented from FX::FXWindow.

virtual void FX::FXOption::killFocus  )  [virtual]

Remove the focus from this window.

Reimplemented from FX::FXWindow.

void FX::FXOption::setSelBackColor FXColor  clr  ) 

Return the selection background color.

FXColor FX::FXOption::getSelBackColor  )  const [inline]

Return the selection background color.

void FX::FXOption::setSelTextColor FXColor  clr  ) 

Return the selection text color.

FXColor FX::FXOption::getSelTextColor  )  const [inline]

Return the selection text color.

Copyright © 1997-2005 Jeroen van der Zijp