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

FXMenuCaption Class Reference

#include <FXMenuCaption.h>

Inheritance diagram for FXMenuCaption:

FXWindow FXDrawable FXId FXObject FXMenuCascade FXMenuCommand FXMenuTitle List of all members.

Public Methods

 FXMenuCaption (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXuint opts=0)
 Construct a menu caption.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual void enable ()
 Enable the menu.

virtual void disable ()
 Disable the menu.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setText (const FXString &text)
 Set the text for this menu.

void setIcon (FXIcon *ic)
 Set the icon for this menu.

FXIcongetIcon () const
 Get the icon for this menu.

void setFont (FXFont *fnt)
 Set the text font.

FXFontgetFont () const
 Return the text font.

FXColor getTextColor () const
 Get the current text color.

void setTextColor (FXColor clr)
 Return the current text color.

FXColor getSelBackColor () const
 Return the selection background color.

void setSelBackColor (FXColor clr)
 Return the selection background color.

FXColor getSelTextColor () const
 Return the selection text color.

void setSelTextColor (FXColor clr)
 Return the selection text color.

void setHiliteColor (FXColor clr)
 Change highlight color.

FXColor getHiliteColor () const
 Get highlight color.

void setShadowColor (FXColor clr)
 Change shadow color.

FXColor getShadowColor () const
 Get shadow color.

void setHelpText (const FXString &text)
 Set the status line help text for this menu.

virtual void save (FXStream &store) const
 Save menu to a stream.

virtual void load (FXStream &store)
 Load menu from a stream.

virtual ~FXMenuCaption ()
 Destructor.


Public Attributes

FXString getText () const
 Get the text for this menu.

FXString getHelpText () const
 Get the status line help text for this menu.


Detailed Description

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