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

FXStatusline Class Reference

#include <FXStatusline.h>

Inheritance diagram for FXStatusline:

FXFrame FXWindow FXDrawable FXId FXObject List of all members.

Public Methods

 FXStatusline (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0)
 Constructor.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setText (const FXString &text)
 Change the temporary status message.

void setNormalText (const FXString &text)
 Change the permanent status message.

void setFont (FXFont *fnt)
 Change the font.

FXFontgetFont () const
 Return the current font.

FXColor getTextColor () const
 Return the text color.

void setTextColor (FXColor clr)
 Change the text color.

FXColor getTextHighlightColor () const
 Return the highlight text color.

void setTextHighlightColor (FXColor clr)
 Change the highlight text color.

virtual void save (FXStream &store) const
 Save status line to stream.

virtual void load (FXStream &store)
 Load status line from stream.

virtual ~FXStatusline ()
 Destroy.


Public Attributes

FXString getText () const
 Return the temporary status message.

FXString getNormalText () const
 Return the permanent status message.


Detailed Description

The status line normally shows its permanent message; when moving the mouse over a Widget which has status-line help, the status line temporarily replaces its normal message with the help information; the status line obtains the help message by sending the Widget a ID_QUERY_HELP message with type SEL_UPDATE. If this query does not result in a new status string, the target of the status line is tried via an ordinary SEL_UPDATE message. If none of the above work then the status line will display the normal text, i.e. the string set via setNormalText(). If the message contains a newline (
), then the part before the newline will be displayed in the highlight color, while the part after the newline is shown using the normal text color.