library: libGui
#include "TGScrollBar.h"

TGScrollBarElement


class description - 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&) ~TGScrollBarElement() static TClass* Class() virtual void DrawBorder() virtual TClass* IsA() const 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

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                             
                                                                      


void SetState(Int_t state)
 Change state of scrollbar element (either up or down).

void DrawBorder()
 Draw border around scollbar element.



Inline Functions


                      void ~TGScrollBarElement()
        TGScrollBarElement 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())
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
        TGScrollBarElement TGScrollBarElement(const TGScrollBarElement&)


Author: Fons Rademakers 10/01/98
Last update: root/gui:$Name: $:$Id: TGScrollBar.cxx,v 1.12 2003/11/05 13:08:26 rdm 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.