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

FX::FXMenuSeparator Class Reference

The menu separator is a simple decorative groove used to delineate items in a popup menu. More...

#include <FXMenuSeparator.h>

Inheritance diagram for FX::FXMenuSeparator:

FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Member Functions

 FXMenuSeparator (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setHiliteColor (FXColor clr)
FXColor getHiliteColor () const
void setShadowColor (FXColor clr)
FXColor getShadowColor () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)


Detailed Description

The menu separator is a simple decorative groove used to delineate items in a popup menu.

When a target/message is given, the menu separator is usually connected to an instance of the recent files class using the ID_ANYFILES message. This automatically hides the menu separator when no files are listed in the recent files section. Another possible target is the MDI client using the ID_MDI_ANY message: in this case, the menu separator will be automatically hidden when no MDI child windows are present.


Constructor & Destructor Documentation

FX::FXMenuSeparator::FXMenuSeparator ( FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0 
)

Construct a menu separator.


Member Function Documentation

virtual FXint FX::FXMenuSeparator::getDefaultWidth (  )  [virtual]

Return default width.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXMenuSeparator::getDefaultHeight (  )  [virtual]

Return default height.

Reimplemented from FX::FXWindow.

void FX::FXMenuSeparator::setHiliteColor ( FXColor  clr  ) 

Change highlight color.

FXColor FX::FXMenuSeparator::getHiliteColor (  )  const [inline]

Get highlight color.

void FX::FXMenuSeparator::setShadowColor ( FXColor  clr  ) 

Change shadow color.

FXColor FX::FXMenuSeparator::getShadowColor (  )  const [inline]

Get shadow color.

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

Save menu to a stream.

Reimplemented from FX::FXWindow.

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

Load menu from a stream.

Reimplemented from FX::FXWindow.

Copyright © 1997-2009 Jeroen van der Zijp