TGHProgressBar


class description - source file - inheritance tree

class TGHProgressBar : public TGProgressBar

    private:
protected:
virtual void DoRedraw() public:
TGHProgressBar TGHProgressBar(const TGWindow* p, UInt_t w = 4, UInt_t h = kProgressBarTextWidth, ULong_t back = fgWhitePixel, ULong_t barcolor = fgDefaultSelectedBackground, GContext_t norm = fgDefaultGC(), FontStruct_t font = fgDefaultFontStruct, UInt_t options = kDoubleBorder|kSunkenFrame) TGHProgressBar TGHProgressBar(const TGWindow* p, TGProgressBar::EBarType type, UInt_t w) TGHProgressBar TGHProgressBar(TGHProgressBar&) virtual void ~TGHProgressBar() static TClass* Class() virtual TGDimension GetDefaultSize() const virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) void ShowPosition(Bool_t set = kTRUE, Bool_t percent = kTRUE, const char* format = %.2f) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

private:
protected:

Class Description

                                                                      
 TGProgressBar, TGHProgressBar and TGVProgressBar                     
                                                                      
 The classes in this file implement progress bars. Progress bars can  
 be used to show progress of tasks taking more then a few seconds.    
 TGProgressBar is an abstract base class, use either TGHProgressBar   
 or TGVProgressBar. TGHProgressBar can in addition show the position  
 as text in the bar.                                                  
                                                                      


TGHProgressBar(const TGWindow *p, EBarType type, UInt_t w) : TGProgressBar(p, w, type == kStandard ? kProgressBarStandardWidth : kProgressBarTextWidth, type == kStandard ? fgDefaultFrameBackground : fgWhitePixel, fgDefaultSelectedBackground, fgDefaultGC(), fgDefaultFontStruct, type == kStandard ? kSunkenFrame : kDoubleBorder | kSunkenFrame)
 Simple constructor allow you to create either a standard progress
 bar, or a more fancy progress bar (fancy means: double sized border,
 white background and a bit wider to allow for text to be printed
 in the bar.

void ShowPosition(Bool_t set, Bool_t percent, const char *format)
 Show postion text, either in percent or formatted according format.

void DoRedraw()
 Draw horizontal progress bar.



Inline Functions


        TGHProgressBar TGHProgressBar(const TGWindow* p, TGProgressBar::EBarType type, UInt_t w)
           TGDimension GetDefaultSize() const
               TClass* Class()
               TClass* IsA() const
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                  void StreamerNVirtual(TBuffer& b)
        TGHProgressBar TGHProgressBar(TGHProgressBar&)
                  void ~TGHProgressBar()


Author: Fons Rademakers 10/10/2000
Last update: root/gui:$Name: $:$Id: TGProgressBar.cxx,v 1.3 2000/10/11 16:13:23 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.