library: libGui
#include "TGScrollBar.h"

TGHScrollBar


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

class TGHScrollBar : public TGScrollBar

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
TGWidget
<-
TGScrollBar
<-
TGHScrollBar

    public:
TGHScrollBar(const TGWindow* p = 0, UInt_t w = 4, UInt_t h = 2, UInt_t options = kHorizontalFrame, Pixel_t back = GetDefaultFrameBackground()) TGHScrollBar(const TGHScrollBar&) virtual ~TGHScrollBar() static TClass* Class() virtual TGDimension GetDefaultSize() const virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleMotion(Event_t* event) virtual TClass* IsA() const virtual void Layout() 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) void StreamerNVirtual(TBuffer& b)

Data Members




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                             
                                                                      


TGHScrollBar(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGScrollBar(p, w, h, options, back)
 Create a horizontal scrollbar widget.

void Layout()
 Layout and move horizontal scrollbar components.

Bool_t HandleButton(Event_t *event)
 Handle a mouse button event in a horizontal scrolbar.

Bool_t HandleMotion(Event_t *event)
 Handle mouse motion event in a horizontal scrollbar.

void SetRange(Int_t range, Int_t page_size)
 Set range of horizontal scrollbar.

void SetPosition(Int_t pos)
 Set logical slider position of horizontal scrollbar.



Inline Functions


                void ~TGHScrollBar()
         TGDimension GetDefaultSize() const
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
        TGHScrollBar TGHScrollBar(const TGHScrollBar&)


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.