library: libGui
#include "TRootControlBar.h"

TRootControlBar


class description - source file - inheritance tree (.pdf)

class TRootControlBar : public TGMainFrame, public TControlBarImp

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGMainFrame
TControlBarImp
<-
TRootControlBar

    public:
TRootControlBar(TControlBar* c, const char* title, Int_t x = -999, Int_t y = -999) TRootControlBar(const TRootControlBar&) virtual ~TRootControlBar() static TClass* Class() virtual void CloseWindow() virtual void Create() TList* GetWidgets() const virtual void Hide() virtual TClass* IsA() const virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) virtual void ReallyDelete() virtual void SetFont(const char* fontName) virtual void SetTextColor(const char* colorName) virtual void Show() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TList* fWidgets list of TGTextButton or TGPictureButtons TGLayoutHints* fL1 button layout hints

Class Description

                                                                      
 TRootControlBar                                                      
                                                                      
 This class provides an interface to the GUI dependent functions of   
 the TControlBar class. A control bar is a horizontal or vertical bar 
 with a number of buttons (text or picture buttons).                  
                                                                      


TRootControlBar(TControlBar *c, const char *title, Int_t x, Int_t y) : TGMainFrame(gClient->GetRoot(), 10, 10), TControlBarImp(c)
 Create a ROOT native GUI controlbar.

~TRootControlBar()
 Delete the control bar implementation.

void Create()
 Create the control bar. Loop over all buttons defined in the
 TControlBar and create the buttons.

void Show()
 Show controlbar. If not yet created create it first.

void Hide()
 Hide controlbar.

Bool_t ProcessMessage(Long_t, Long_t, Long_t parm2)
 Handle controlbar button messages.

void ReallyDelete()
 Really delete the control bar and the this GUI.

void CloseWindow()
 Called when closed via window manager action.

void SetFont(const char *fontName)
 sets new font for control bar buttons

void SetTextColor(const char *colorName)
 sets text color for control bar buttons, e.g.:
 root > .x tutorials/demos.C
 root > bar->SetTextColor("red")



Inline Functions


                 TList* GetWidgets() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
        TRootControlBar TRootControlBar(const TRootControlBar&)


Author: Fons Rademakers 22/02/98
Last update: root/gui:$Name: $:$Id: TRootControlBar.cxx,v 1.8 2003/10/09 07:40:13 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.