TGTab


class description - source file - inheritance tree

class TGTab : public TGCompositeFrame, public TGWidget


    protected:
void ChangeTab(Int_t tabIndex) public:
TGTab TGTab(TGWindow* p, UInt_t w, UInt_t h, GContext_t norm = fgDefaultGC, FontStruct_t font = fgDefaultFontStruct, UInt_t options = kChildFrame, ULong_t back = fgDefaultFrameBackground) TGTab TGTab(TGTab&) virtual void ~TGTab() virtual TGCompositeFrame* AddTab(char* text) virtual TGCompositeFrame* AddTab(TGString* text) TClass* Class() virtual void DrawBorder() TGCompositeFrame* GetContainer() Int_t GetCurrent() UInt_t GetTabHeight() virtual Bool_t HandleButton(Event_t* event) virtual TClass* IsA() virtual Bool_t SetTab(Int_t tabIndex) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fCurrent index of current tab UInt_t fTabh tab height TGCompositeFrame* fContainer current container FontStruct_t fFontStruct font GContext_t fNormGC drawing context static FontStruct_t fgDefaultFontStruct static GContext_t fgDefaultGC

Class Description

                                                                      
 TGTab, TGTabElement, TGTabLayout                                     
                                                                      
 A tab widget contains a set of composite frames each with a little   
 tab with a name (like a set of folders with tabs).                   
                                                                      
 The TGTab is user callable. The TGTabElement and TGTabLayout are     
 is a service classes of the tab widget.                              
                                                                      
 Clicking on a tab will bring the associated composite frame to the   
 front and generate the following event:                              
 kC_COMMAND, kCM_TAB, tab id, 0.                                      
                                                                      


TGTab(const TGWindow *p, UInt_t w, UInt_t h, GContext_t norm, FontStruct_t font, UInt_t options, ULong_t back) : TGCompositeFrame(p, w, h, options, back)
 Create tab widget.

~TGTab()
 Delete tab widget. This deletes the tab windows and the containers.
 The tab string is deleted by the TGTabElement dtor.

TGCompositeFrame* AddTab(TGString *text)
 Add a tab to the tab widget. Returns the new container, which
 is owned by the tab widget. The text is adopted by the tab widget.

TGCompositeFrame* AddTab(const char *text)
 Add a tab to the tab widget. Returns the new container. The container
 is owned by the tab widget.

void ChangeTab(Int_t tabIndex)
 Make tabIdx the current tab. Utility method called by SetTab and
 HandleButton().

Bool_t SetTab(Int_t tabIndex)
 Brings the composite frame with the index tabIndex to the
 front and generate the following event if the front tab has
 changed:
 kC_COMMAND, kCM_TAB, tab id, 0.
 Returns kFALSE if tabIndex is a not valid index

Bool_t HandleButton(Event_t *event)
 Handle button event in the tab widget. Basically we only handle
 button events in the small tabs.



Inline Functions


                     void DrawBorder()
        TGCompositeFrame* GetContainer()
                    Int_t GetCurrent()
                   UInt_t GetTabHeight()
                  TClass* Class()
                  TClass* IsA()
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                    TGTab TGTab(TGTab&)


Author: Fons Rademakers 13/01/98
Last update: 2.00/12 02/10/98 15.14.26 by Fons Rademakers
Copyright (c) 1995-1998, 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.