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

FXTooltip Class Reference

Hopefully Helpful Hint message.

#include <FXTooltip.h>

Inheritance diagram for FXTooltip:

FXShell FXComposite FXWindow FXDrawable FXId FXObject List of all members.

Public Types

enum  {
  ID_TIP_SHOW = FXShell::ID_LAST,
  ID_TIP_HIDE,
  ID_LAST
}

Public Methods

 FXTooltip (FXApp *a, FXuint opts=TOOLTIP_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct a tool tip.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual void show ()
 Display the tip.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

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

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

FXFontgetFont () const
 Get the tip text font.

FXColor getTextColor () const
 Get the current tip text color.

void setTextColor (FXColor clr)
 Set the current tip text color.

virtual FXbool doesSaveUnder () const
virtual void save (FXStream &store) const
 Save tip to a stream.

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

virtual ~FXTooltip ()
 Destructor.


Public Attributes

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