TGStatusBar


class description - source file - inheritance tree

class TGStatusBar : public TGFrame


    protected:
virtual void DoRedraw() public:
TGStatusBar TGStatusBar(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = GetDefaultFrameBackground()) TGStatusBar TGStatusBar(const TGStatusBar&) virtual void ~TGStatusBar() static TClass* Class() void Draw3DCorner(Bool_t corner) virtual void DrawBorder() virtual TClass* IsA() const virtual void SetParts(Int_t* parts, Int_t npart) virtual void SetParts(Int_t npart) virtual void SetText(TGString* text, Int_t partidx = 0) virtual void SetText(const char* text, Int_t partidx = 0) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TGStatusBarPart** fStatusPart frames containing statusbar text Int_t* fParts size of parts (in percent of total width) Int_t fNpart number of parts Int_t fYt y drawing position (depending on font) Int_t* fXt x position for each part Bool_t f3DCorner draw 3D corner (drawn by default) static TGGC fgDefaultGC static FontStruct_t fgDefaultFontStruct

Class Description

                                                                      
 TGStatusBar                                                          
                                                                      
 Provides a StatusBar widget.                                         
                                                                      


TGStatusBar(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGFrame(p, w, h, options, back)
 Create a status bar widget. By default it consist of one part.
 Multiple parts can be created using SetParts().

~TGStatusBar()
 Delete status bar widget.

void SetText(TGString *text, Int_t partidx)
 Set text in partition partidx in status bar. The TGString is
 adopted by the status bar.

void SetText(const char *text, Int_t partidx)
 Set text in partion partidx in status bar.

void DrawBorder()
 Draw the status bar border (including cute 3d corner).

void DoRedraw()
 Redraw status bar.

void SetParts(Int_t *parts, Int_t npart)
 Divide the status bar in nparts. Size of each part is given in parts
 array (percentual).

void SetParts(Int_t npart)
 Divide the status bar in npart equal sized parts.



Inline Functions


               void Draw3DCorner(Bool_t corner)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
        TGStatusBar TGStatusBar(const TGStatusBar&)


Author: Fons Rademakers 23/01/98
Last update: root/gui:$Name: $:$Id: TGStatusBar.cxx,v 1.3 2001/03/09 10:58:30 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.