library: libGui #include "TGListBox.h" |
TGLBContainer
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void OnAutoScroll()
public:
TGLBContainer(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground())
TGLBContainer(const TGLBContainer&)
virtual ~TGLBContainer()
virtual void AddEntry(TGLBEntry* lbe, TGLayoutHints* lhints)
virtual void AddEntrySort(TGLBEntry* lbe, TGLayoutHints* lhints)
virtual void Associate(const TGWindow* w)
static TClass* Class()
virtual UInt_t GetDefaultWidth() const
TGListBox* GetListBox() const
virtual Bool_t GetMultipleSelections() const
virtual Int_t GetPos(Int_t id)
virtual Int_t GetSelected() const
virtual void GetSelectedEntries(TList* selected)
TGLBEntry* GetSelectedEntry() const
virtual Bool_t GetSelection(Int_t id)
virtual TGVScrollBar* GetVScrollbar() const
virtual Bool_t HandleButton(Event_t* event)
virtual Bool_t HandleMotion(Event_t* event)
virtual void InsertEntry(TGLBEntry* lbe, TGLayoutHints* lhints, Int_t afterID)
virtual TClass* IsA() const
virtual void Layout()
virtual void RemoveAll()
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
virtual void RemoveEntry(Int_t id)
virtual TGLBEntry* Select(Int_t id, Bool_t sel)
virtual TGLBEntry* Select(Int_t id)
virtual void SetListBox(TGListBox* lb)
virtual void SetMultipleSelections(Bool_t multi)
virtual void SetVsbPosition(Int_t newPos)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGLBEntry* fLastActive last active listbox entry in single selection listbox
TGListBox* fListBox list box which contains this container
Bool_t fMultiSelect true if multi selection is switched on
Int_t fChangeStatus defines the changes (select or unselect) while the mouse
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.
void RemoveEntry(Int_t id)
Remove the entry with specified id from the listbox container.
To update the listbox call Layout().
void RemoveAll()
Remove all entries in this container.
Int_t GetSelected()
Returns id of selected entry. In case of no selected entry or
if multi selection is switched on returns -1.
void OnAutoScroll()
Autoscroll while close to & beyond The Wall
Int_t GetPos(Int_t id)
Returns the position in the list box of the entry id.
The first position has position no 0. Returns -1 if entry id
is not in the list of entries.
Author: Fons Rademakers 12/01/98
Last update: root/gui:$Name: $:$Id: TGListBox.cxx,v 1.57 2006/07/03 16:10:45 brun 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.