TGToolTip
class description - source file - inheritance tree
public:
TGToolTip TGToolTip(TGWindow* p, TGFrame* f, char* text, Long_t delayms)
TGToolTip TGToolTip(TGWindow* p, TBox* b, char* text, Long_t delayms)
TGToolTip TGToolTip(TGToolTip&)
virtual void ~TGToolTip()
TClass* Class()
virtual void DrawBorder()
virtual Bool_t HandleTimer(TTimer* t)
void Hide()
virtual TClass* IsA()
void Reset()
void Reset(TVirtualPad* parent)
void Show(Int_t x, Int_t y)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
private:
TGLabel* fLabel help text
TGLayoutHints* fL1 layout used to place text in frame
TTimer* fDelay popup delay timer
static const TGFrame* fWindow frame to which tool tip is associated
static const TVirtualPad* fPad pad to which tooltip is associated
static const TBox* fBox box in pad to which tooltip is associated
static ULong_t fgLightYellowPixel
TGToolTip
A tooltip is a one line help text that is displayed in a window
when the cursor rests over a widget. For an example of usage see
the TGButton class.
TGToolTip(const TGWindow *p, const TGFrame *f, const char *text,
Long_t delayms) : TGCompositeFrame(p, 10, 10, kHorizontalFrame | kRaisedFrame)
Create a tool tip. P is the tool tips parent window (normally
fClient->GetRoot(), f is the frame to which the tool tip is associated,
text is the tool tip one-liner and delayms is the delay in ms before
the tool tip is shown.
TGToolTip(const TGWindow *p, const TBox *box, const char *text,
Long_t delayms) : TGCompositeFrame(p, 10, 10, kHorizontalFrame | kRaisedFrame)
Create a tool tip. P is the tool tips parent window (normally
fClient->GetRoot(), f is the frame to which the tool tip is associated,
text is the tool tip one-liner and delayms is the delay in ms before
the tool tip is shown.
~TGToolTip()
Delete a tool tip object.
void DrawBorder()
Draw border of tool tip window.
void Show(Int_t x, Int_t y)
Show tool tip window.
void Hide()
Hide tool tip window. Use this method to hide the tool tip in a client
class.
void Reset()
Reset tool tip popup delay timer. Use this method to activate tool tip
in a client class.
void Reset(const TVirtualPad *parent)
Reset tool tip popup delay timer. Use this method to activate tool tip
in a client class. Use this method for graphics objects drawn in a
TCanvas, also the tool tip must have been created with the ctor
taking the TBox as argument.
Bool_t HandleTimer(TTimer *)
If tool tip delay timer times out show tool tip window.
Inline Functions
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
TGToolTip TGToolTip(TGToolTip&)
Author: Fons Rademakers 22/02/98
Last update: 2.21/05 08/02/99 10.45.50 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.