library: libGui
#include "TGScrollBar.h"

TGScrollBarElement


class description - header file - source file - inheritance tree (.pdf)

class TGScrollBarElement : public TGFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGScrollBarElement

    public:
TGScrollBarElement(const TGWindow* p = 0, const TGPicture* pic = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kRaisedFrame|kDoubleBorder, Pixel_t back = GetDefaultFrameBackground()) TGScrollBarElement(const TGScrollBarElement&) virtual ~TGScrollBarElement() static TClass* Class() virtual void DrawBorder() virtual TClass* IsA() const virtual Bool_t IsEnabled() const virtual void SetEnabled(Bool_t on = kTRUE) virtual void SetState(Int_t state) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fState state of scrollbar element (button up or down) const TGPicture* fPic picture in scrollbar element const TGPicture* fPicN picture for normal state of scrollbar element const TGPicture* fPicD picture for disabled state of scrollbar element

Class Description

                                                                      
 TGScrollBar and TGScrollBarElement                                   
                                                                      
 The classes in this file implement scrollbars. Scrollbars can be     
 either placed horizontal or vertical. A scrollbar contains three     
 TGScrollBarElements: The "head", "tail" and "slider". The head and   
 tail are fixed at either end and have the typical arrows in them.    
                                                                      
 The TGHScrollBar will generate the following event messages:         
 kC_HSCROLL, kSB_SLIDERPOS, position, 0                               
 kC_HSCROLL, kSB_SLIDERTRACK, position, 0                             
                                                                      
 The TGVScrollBar will generate the following event messages:         
 kC_VSCROLL, kSB_SLIDERPOS, position, 0                               
 kC_VSCROLL, kSB_SLIDERTRACK, position, 0                             
                                                                      

TGScrollBarElement(const TGWindow *p, const TGPicture *pic, UInt_t w, UInt_t h, UInt_t options, Pixel_t back)
 constructor
~TGScrollBarElement()
 destructor
void SetState(Int_t state)
 Change state of scrollbar element (either up or down).
void SetEnabled(Bool_t on)
 Enable/Disable scroll bar button chaging the state
void DrawBorder()
 Draw border around scollbar element.
TGScrollBarElement(const TGWindow *p = 0, const TGPicture *pic = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kRaisedFrame | kDoubleBorder, Pixel_t back = GetDefaultFrameBackground())
Bool_t IsEnabled()

Author: Fons Rademakers 10/01/98
Last update: root/gui:$Name: $:$Id: TGScrollBar.cxx,v 1.19 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.