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

FX::FXStatusLine Class Reference

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. More...

#include <FXStatusLine.h>

Inheritance diagram for FX::FXStatusLine:

FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXStatusLine (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0)
virtual void create ()
virtual void detach ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setText (const FXString &text)
FXString getText () const
void setNormalText (const FXString &text)
FXString getNormalText () const
void setFont (FXFont *fnt)
FXFontgetFont () const
FXColor getTextColor () const
void setTextColor (FXColor clr)
FXColor getTextHighlightColor () const
void setTextHighlightColor (FXColor clr)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXStatusLine ()

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.


Constructor & Destructor Documentation

FX::FXStatusLine::FXStatusLine FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0
 

Constructor.

virtual FX::FXStatusLine::~FXStatusLine  )  [virtual]
 

Destroy.


Member Function Documentation

virtual void FX::FXStatusLine::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXWindow.

virtual void FX::FXStatusLine::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXStatusLine::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FXStatusLine::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXFrame.

void FX::FXStatusLine::setText const FXString text  ) 
 

Change the temporary status message.

FXString FX::FXStatusLine::getText  )  const [inline]
 

Return the temporary status message.

void FX::FXStatusLine::setNormalText const FXString text  ) 
 

Change the permanent status message.

FXString FX::FXStatusLine::getNormalText  )  const [inline]
 

Return the permanent status message.

void FX::FXStatusLine::setFont FXFont fnt  ) 
 

Change the font.

FXFont* FX::FXStatusLine::getFont  )  const [inline]
 

Return the current font.

FXColor FX::FXStatusLine::getTextColor  )  const [inline]
 

Return the text color.

void FX::FXStatusLine::setTextColor FXColor  clr  ) 
 

Change the text color.

FXColor FX::FXStatusLine::getTextHighlightColor  )  const [inline]
 

Return the highlight text color.

void FX::FXStatusLine::setTextHighlightColor FXColor  clr  ) 
 

Change the highlight text color.

virtual void FX::FXStatusLine::save FXStream store  )  const [virtual]
 

Save status line to stream.

Reimplemented from FX::FXFrame.

virtual void FX::FXStatusLine::load FXStream store  )  [virtual]
 

Load status line from stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2004 Jeroen van der Zijp