library: libGui #include "TGListBox.h" |
Inheritance Chart: | |||||||||||||||||||||||||||||||||||||
|
protected:
virtual void DoRedraw() public:
TGLBEntry(const TGWindow* p = 0, Int_t id = -1, UInt_t options = kHorizontalFrame, Pixel_t back = GetWhitePixel()) TGLBEntry(const TGLBEntry&) ~TGLBEntry() virtual void Activate(Bool_t a) static TClass* Class() Int_t EntryId() const virtual TClass* IsA() const virtual Bool_t IsActive() const virtual void SetBackgroundColor(Pixel_t col) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void Toggle() virtual void Update(TGLBEntry*)
protected:
Int_t fEntryId message id of listbox entry Pixel_t fBkcolor entry background color Bool_t fActive true if entry is active
TGListBox, TGLBContainer, TGLBEntry and TGTextLBEntry A listbox is a box, possibly with scrollbar, containing entries. Currently entries are simple text strings (TGTextLBEntry). A TGListBox looks a lot like a TGCanvas. It has a TGViewPort containing a TGLBContainer which contains the entries and it also has a vertical scrollbar which becomes visible if there are more items than fit in the visible part of the container. The TGListBox is user callable. The other classes are service classes of the listbox. Selecting an item in the listbox will generate the event: kC_COMMAND, kCM_LISTBOX, listbox id, item id.