TGScrollBar


class description - source file - inheritance tree

class TGScrollBar : public TGFrame, public TGWidget


    public:
virtual void ~TGScrollBar() TClass* Class() virtual void DrawBorder() virtual Int_t GetPosition() const virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleMotion(Event_t* event) virtual Bool_t HandleTimer(TTimer* t) virtual TClass* IsA() const virtual void Layout() virtual void MapSubwindows() virtual void SetPosition(Int_t pos) virtual void SetRange(Int_t range, Int_t page_size) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fX0 Int_t fY0 current slider position in pixels Int_t fXp Int_t fYp previous slider position in pixels Bool_t fDragging in dragging mode? Int_t fRange logical upper range of scrollbar Int_t fPsize logical page size of scrollbar Int_t fPos logical current position Int_t fSliderSize logical slider size Int_t fSliderRange logical slider range TGScrollBarElement* fHead head button of scrollbar TGScrollBarElement* fTail tail button of scrollbar TGScrollBarElement* fSlider slider const TGPicture* fHeadPic picture in head (up or left arrow) const TGPicture* fTailPic picture in tail (down or right arrow) TTimer* fRepeat repeat rate timer (when mouse stays pressed) Window_t fSubw sub window in which mouse is pressed static Pixmap_t fgBckgndPixmap static Int_t fgScrollBarWidth


See also

TGHScrollBar, TGVScrollBar

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.    
                                                                      


~TGScrollBar()
 Delete a scrollbar (either horizontal or vertical).

Bool_t HandleTimer(TTimer *t)
 Handle repeat timer for horizontal or vertical scrollbar. Every time
 timer times out we move slider.



Inline Functions


               void DrawBorder()
             Bool_t HandleButton(Event_t* event)
             Bool_t HandleMotion(Event_t* event)
               void Layout()
               void SetRange(Int_t range, Int_t page_size)
               void SetPosition(Int_t pos)
              Int_t GetPosition() const
               void MapSubwindows()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Fons Rademakers 10/01/98
Last update: 2.23/02 02/09/99 15.54.27 by Rene Brun
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.