TGListView


class description - source file - inheritance tree

class TGListView : public TGCanvas


    public:
TGListView TGListView(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame|kDoubleBorder, ULong_t back = fgDefaultFrameBackground) TGListView TGListView(TGListView&) virtual void ~TGListView() TClass* Class() virtual TClass* IsA() const virtual void Layout() virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) virtual void SetContainer(TGFrame* f) virtual void SetHeader(const char* s, Int_t mode, Int_t idx) virtual void SetViewMode(EListViewMode ViewMode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fColumns[7] column width Int_t fJmode[7] column text alignment EListViewMode fViewMode view mode if list view widget TGDimension fMaxSize maximum item size TGTextButton* fColHeader[7] column headers for in detailed mode static GContext_t fgDefaultGC static FontStruct_t fgDefaultFontStruct

Class Description

                                                                      
 TGListView, TGLVContainer and TGLVEntry                              
                                                                      
 A list view is a widget that can contain a number of items           
 arranged in a grid or list. The items can be represented either      
 by a string or by an icon.                                           
                                                                      
 The TGListView is user callable. The other classes are service       
 classes of the list view.                                            
                                                                      
 A list view can generate the following events:                       
 kC_CONTAINER, kCT_SELCHANGED, total items, selected items.           
 kC_CONTAINER, kCT_ITEMCLICK, which button, location (y<<16|x).       
 kC_CONTAINER, kCT_ITEMDBLCLICK, which button, location (y<<16|x).    
                                                                      


TGListView(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGCanvas(p, w, h, options, back)
 Create a list view widget.

~TGListView()
 Delete a list view widget.

void SetHeader(const char *s, Int_t mode, Int_t idx)
 Set header button idx (0-6), mode is the x text alignmode
 (ETextJustification).

void SetViewMode(EListViewMode viewMode)
 Set list view mode.

void SetContainer(TGFrame *f)
 Set list view container. Container must be at least of type
 TGLVContainer.

void Layout()
 Layout list view components (container and contents of container).

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Handle messages generated by the list view components.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
         TGListView TGListView(TGListView&)


Author: Fons Rademakers 17/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.