TGToolTip


class description - source file - inheritance tree

class TGToolTip : public TGCompositeFrame


    public:
TGToolTip TGToolTip(const TGWindow* p, const TBox* b, const char* text, Long_t delayms) TGToolTip TGToolTip(const TGWindow* p, const TGFrame* f, const char* text, Long_t delayms) TGToolTip TGToolTip(const TBox* b, const 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() const void Reset() void Reset(const TVirtualPad* parent) void Show(Int_t x, Int_t y) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(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 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, 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(const TBox *box, const char *text,Long_t delayms) : TGCompositeFrame(gClient->GetRoot(), 10, 10, kHorizontalFrame | kRaisedFrame)
 Create a tool tip in the parent window gClient->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() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
          TGToolTip TGToolTip(TGToolTip&)


Author: Fons Rademakers 22/02/98
Last update: 2.23/02 05/10/99 16.43.36 by Fons Rademakers
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.