library: libGui #include "TGScrollBar.h" |
Inheritance Chart: | |||||||||||||||||||||||
|
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)
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
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
constructor