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

FX::FXMenuCaption Class Reference

#include <FXMenuCaption.h>

Inheritance diagram for FX::FXMenuCaption:
FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXMenuCascade FX::FXMenuCommand FX::FXMenuTitle FX::FXMenuCheck FX::FXMenuRadio

List of all members.

Public Member Functions

 FXMenuCaption (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXuint opts=0)
virtual void create ()
virtual void detach ()
virtual void enable ()
virtual void disable ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setText (const FXString &text)
FXString getText () const
void setIcon (FXIcon *ic)
FXIcongetIcon () const
void setFont (FXFont *fnt)
FXFontgetFont () const
void setMenuStyle (FXuint style)
FXuint getMenuStyle () const
void setTextColor (FXColor clr)
FXColor getTextColor () const
void setSelBackColor (FXColor clr)
FXColor getSelBackColor () const
void setSelTextColor (FXColor clr)
FXColor getSelTextColor () const
void setHiliteColor (FXColor clr)
FXColor getHiliteColor () const
void setShadowColor (FXColor clr)
FXColor getShadowColor () const
void setHelpText (const FXString &text)
const FXStringgetHelpText () const
void setTipText (const FXString &text)
const FXStringgetTipText () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXMenuCaption ()

Detailed Description

The menu caption is a widget which can be used as a caption above a number of menu commands in a menu.

See also:


Constructor & Destructor Documentation

FX::FXMenuCaption::FXMenuCaption ( FXComposite p,
const FXString text,
FXIcon ic = NULL,
FXuint  opts = 0 
)

Construct a menu caption.

virtual FX::FXMenuCaption::~FXMenuCaption ( ) [virtual]

Destructor.


Member Function Documentation

virtual void FX::FXMenuCaption::create ( ) [virtual]

Create server-side resources.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXMenuTitle, and FX::FXMenuCascade.

virtual void FX::FXMenuCaption::detach ( ) [virtual]

Detach server-side resources.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXMenuTitle, and FX::FXMenuCascade.

virtual void FX::FXMenuCaption::enable ( ) [virtual]

Enable the menu.

Reimplemented from FX::FXWindow.

virtual void FX::FXMenuCaption::disable ( ) [virtual]

Disable the menu.

Reimplemented from FX::FXWindow.

Return default width.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXMenuTitle, FX::FXMenuRadio, FX::FXMenuCheck, and FX::FXMenuCommand.

Return default height.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXMenuTitle, FX::FXMenuRadio, FX::FXMenuCheck, and FX::FXMenuCommand.

void FX::FXMenuCaption::setText ( const FXString text)

Set the text for this menu.

Get the text for this menu.

Set the icon for this menu.

FXIcon* FX::FXMenuCaption::getIcon ( ) const [inline]

Get the icon for this menu.

Set the text font.

FXFont* FX::FXMenuCaption::getFont ( ) const [inline]

Return the text font.

Set menu caption style.

Get menu caption style.

Return the current text color.

Get the current text color.

Return the selection background color.

Return the selection background color.

Return the selection text color.

Return the selection text color.

Change highlight color.

Get highlight color.

Change shadow color.

Get shadow color.

void FX::FXMenuCaption::setHelpText ( const FXString text)

Set the status line help text for this menu.

const FXString& FX::FXMenuCaption::getHelpText ( ) const [inline]

Get the status line help text for this menu.

void FX::FXMenuCaption::setTipText ( const FXString text) [inline]

Set the tool tip message for this menu.

const FXString& FX::FXMenuCaption::getTipText ( ) const [inline]

Get the tool tip message for this menu.

virtual void FX::FXMenuCaption::save ( FXStream store) const [virtual]

Save menu to a stream.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXMenuTitle, FX::FXMenuCascade, FX::FXMenuRadio, FX::FXMenuCheck, and FX::FXMenuCommand.

virtual void FX::FXMenuCaption::load ( FXStream store) [virtual]

Load menu from a stream.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXMenuTitle, FX::FXMenuCascade, FX::FXMenuRadio, FX::FXMenuCheck, and FX::FXMenuCommand.

Copyright © 1997-2005 Jeroen van der Zijp