TGToolTip


class description - source file - inheritance tree

class TGToolTip : public TGCompositeFrame


    public:
TGToolTip TGToolTip(const TGWindow* p, const TGFrame* f, const char* text, Long_t delayms) TGToolTip TGToolTip(const TGWindow* p, const TBox* b, const char* text, Long_t delayms) TGToolTip TGToolTip(const TBox* b, const char* text, Long_t delayms) TGToolTip TGToolTip(const TGToolTip&) virtual void ~TGToolTip() static TClass* Class() virtual void DrawBorder() virtual Bool_t HandleTimer(TTimer* t) void Hide() virtual TClass* IsA() const void Reset() void Reset(const TVirtualPad* parent) void SetPosition(Int_t x, Int_t y) void SetText(const char* new_text) void Show(Int_t x, Int_t y) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TGLabel* fLabel help text TGLayoutHints* fL1 layout used to place text in frame TTimer* fDelay popup delay timer const TGFrame* fWindow frame to which tool tip is associated const TVirtualPad* fPad pad to which tooltip is associated const TBox* fBox box in pad to which tooltip is associated Int_t fX X position in fWindow where to popup Int_t fY Y position in fWindow where to popup static ULong_t fgLightYellowPixel

Class Description

                                                                      
 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, kTempFrame | 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, kTempFrame | kHorizontalFrame | kRaisedFrame)
 Create a tool tip. P is the tool tips parent window (normally
 fClient->GetRoot(), box is the area 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. When using this ctor with the box argument
 you have to use Reset(const TVirtualPad *parent).

TGToolTip(const TBox *box, const char *text,Long_t delayms) : TGCompositeFrame(gClient->GetRoot(), 10, 10, kTempFrame | kHorizontalFrame | kRaisedFrame)
 Create a tool tip in the parent window gClient->GetRoot(),
 box is the area 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. When using this ctor with the box argument
 you have to use Reset(const TVirtualPad *parent).

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

void SetText(const char *new_text)
 Set new tool tip text.

void SetPosition(Int_t x, Int_t y)
 Set popup position within specified frame (as specified in the ctor).
 To get back default behaviour (in the middle just below the designated
 frame) set position to -1,-1.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
          TGToolTip TGToolTip(const TGToolTip&)


Author: Fons Rademakers 22/02/98
Last update: root/gui:$Name: $:$Id: TGToolTip.cxx,v 1.5 2001/11/28 16:05:41 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


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.