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

long onPaint (FXObject *, FXSelector, void *)
 FXMenuSeparator (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0)
 Construct a menu separator.
virtual FXint getDefaultWidth ()
 Return default width.
virtual FXint getDefaultHeight ()
 Return default height.
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.
virtual void save (FXStream &store) const
 Save menu to a stream.
virtual void load (FXStream &store)
 Load menu from a stream.

Protected Attributes

FXColor hiliteColor
FXColor shadowColor

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.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp