library: libGui
#include "TGButtonGroup.h"

TGButtonGroup


class description - header file - source file
viewCVS header - viewCVS source

class TGButtonGroup: public TGGroupFrame

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGButtonGroup(const TGWindow* parent = 0, const TString& title = , UInt_t options = kChildFrame|kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground())
TGButtonGroup(const TGWindow* parent, UInt_t r, UInt_t c, Int_t s = 0, Int_t h = 0, const TString& title = , GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground())
virtual~TGButtonGroup()
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
virtual voidTGCompositeFrame::AddFrame(TGFrame* f, TGLayoutHints* l = 0)
voidTGFrame::AddInput(UInt_t emask)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual voidButtonClicked()
virtual voidButtonPressed()
virtual voidButtonReleased()
virtual voidTGFrame::ChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)
virtual voidTGCompositeFrame::ChangeOptions(UInt_t options)
virtual voidTGCompositeFrame::ChangeSubframesBackground(Pixel_t back)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTGCompositeFrame::Cleanup()
virtual voidTObject::Clear(Option_t* = "")
virtual voidClicked(Int_t id)
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
Bool_tTGFrame::Contains(Int_t x, Int_t y) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTGFrame::Delete(Option_t* = "")
virtual voidTGFrame::DeleteWindow()
virtual voidTQObject::Destroyed()
virtual voidTGWindow::DestroySubwindows()
virtual voidTGWindow::DestroyWindow()
Bool_tTQObject::Disconnect(const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = "0")
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidDrawBorder()
virtual voidTGFrame::DrawClass() const
virtual TObject*TGFrame::DrawClone(Option_t* = "") const
virtual voidTGFrame::DrawCopy(Handle_t, Int_t, Int_t)
virtual voidTGFrame::Dump() const
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TGButton*Find(Int_t id) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
virtual TGButton*GetButton(Int_t id) const
TGClient*TGObject::GetClient() const
Int_tGetCount() const
static Int_tTGWindow::GetCounter()
static FontStruct_tTGGroupFrame::GetDefaultFontStruct()
static Pixel_tTGFrame::GetDefaultFrameBackground()
static const TGGC&TGGroupFrame::GetDefaultGC()
virtual UInt_tTGCompositeFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGGroupFrame::GetDefaultSize() const
virtual UInt_tTGCompositeFrame::GetDefaultWidth() const
virtual Int_tTGFrame::GetDragType() const
virtual Option_t*TObject::GetDrawOption() const
virtual Int_tTGFrame::GetDropType() const
static Long_tTObject::GetDtorOnly()
virtual UInt_tTGWindow::GetEditDisabled() const
UInt_tTGFrame::GetEventMask() const
FontStruct_tTGGroupFrame::GetFontStruct() const
virtual Pixel_tTGFrame::GetForeground() const
TGFrameElement*TGFrame::GetFrameElement() const
virtual TGFrame*TGCompositeFrame::GetFrameFromPoint(Int_t x, Int_t y)
UInt_tTGFrame::GetHeight() const
static const TGGC&TGFrame::GetHilightGC()
virtual const char*TObject::GetIconName() const
Int_tGetId(TGButton* button) const
virtual TGLayoutManager*TGCompositeFrame::GetLayoutManager() const
virtual TList*TGCompositeFrame::GetList() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
UInt_tTGFrame::GetMaxHeight() const
UInt_tTGFrame::GetMaxWidth() const
UInt_tTGFrame::GetMinHeight() const
UInt_tTGFrame::GetMinWidth() const
virtual const char*TGWindow::GetName() const
GContext_tTGGroupFrame::GetNormGC() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UInt_tTGFrame::GetOptions() const
const TGWindow*TGWindow::GetParent() const
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
Int_tTGCompositeFrame::GetState(TGFrame* f) const
virtual const char*TGGroupFrame::GetTitle() const
Int_tTGGroupFrame::GetTitlePos() const
virtual UInt_tTObject::GetUniqueID() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
virtual Bool_tTGCompositeFrame::HandleButton(Event_t*)
virtual Bool_tTGFrame::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGFrame::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleCrossing(Event_t*)
virtual Bool_tTGCompositeFrame::HandleDoubleClick(Event_t*)
virtual Bool_tTGCompositeFrame::HandleDragDrop(TGFrame* frame, Int_t x, Int_t y, TGLayoutHints* lo)
virtual Bool_tTGCompositeFrame::HandleDragEnter(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragLeave(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragMotion(TGFrame*)
virtual Bool_tTGFrame::HandleEvent(Event_t* event)
virtual Bool_tTGWindow::HandleExpose(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tTGCompositeFrame::HandleKey(Event_t*)
virtual Bool_tTGCompositeFrame::HandleMotion(Event_t*)
virtual Bool_tTGCompositeFrame::HandleSelection(Event_t*)
virtual Bool_tTGFrame::HandleSelectionClear(Event_t*)
virtual Bool_tTGFrame::HandleSelectionRequest(Event_t*)
virtual Bool_tTGWindow::HandleTimer(TTimer*)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTGObject::Hash() const
Bool_tTGGroupFrame::HasOwnFont() const
virtual voidHide()
virtual voidTGCompositeFrame::HideFrame(TGFrame* f)
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = "0")
virtual voidTGWindow::IconifyWindow()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual Int_tInsert(TGButton* button, int id = -1)
virtual voidTGFrame::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTGFrame::IsActive() const
Bool_tTGCompositeFrame::IsArranged(TGFrame* f) const
Bool_tTGCompositeFrame::IsArranged(TGFrameElement* ptr) const
Bool_tIsBorderDrawn() const
virtual Bool_tTGCompositeFrame::IsComposite() const
virtual Bool_tTGCompositeFrame::IsEditable() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
Bool_tIsExclusive() const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tTGCompositeFrame::IsLayoutBroken() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGCompositeFrame::IsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
Bool_tIsRadioButtonExclusive() const
virtual Bool_tTObject::IsSortable() const
Bool_tTGCompositeFrame::IsVisible(TGFrame* f) const
Bool_tTGCompositeFrame::IsVisible(TGFrameElement* ptr) const
Bool_tTObject::IsZombie() const
virtual voidTGCompositeFrame::Layout()
static voidTQObject::LoadRQ_OBJECT()
virtual voidTGWindow::LowerWindow()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = "0")
virtual voidTObject::ls(Option_t* option = "") const
virtual voidTGFrame::MapRaised()
virtual voidTGCompositeFrame::MapSubwindows()
virtual voidTGFrame::MapWindow()
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)
virtual voidTGFrame::Move(Int_t x, Int_t y)
virtual voidTGFrame::MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
virtual Int_tTGCompositeFrame::MustCleanup() const
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPressed(Int_t id)
virtual voidTGCompositeFrame::Print(Option_t* option = "") const
virtual voidTGFrame::ProcessedEvent(Event_t* event)
virtual Bool_tTGCompositeFrame::ProcessMessage(Long_t, Long_t, Long_t)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTGFrame::ReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidReleaseButtons()
virtual voidReleased(Int_t id)
virtual voidRemove(TGButton* button)
virtual voidTGCompositeFrame::RemoveFrame(TGFrame* f)
voidTGFrame::RemoveInput(UInt_t emask)
virtual voidTGGroupFrame::Rename(const char* title)
virtual voidTGFrame::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidTGFrame::Resize(TGDimension size)
virtual voidTGFrame::Resize(UInt_t w = 0, UInt_t h = 0)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
virtual voidTGCompositeFrame::SavePrimitiveSubframes(ostream& out, Option_t* option = "")
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGFrame::SetBackgroundColor(Pixel_t back)
virtual voidTGWindow::SetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetBorderDrawn(Bool_t enable = kTRUE)
virtual voidSetButton(Int_t id, Bool_t down = kTRUE)
virtual voidTGCompositeFrame::SetCleanup(Int_t mode = kLocalCleanup)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
virtual voidTGFrame::SetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidTGCompositeFrame::SetEditable(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetEditDisabled(UInt_t on = 1)
virtual voidSetExclusive(Bool_t flag = kTRUE)
virtual voidTGFrame::SetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
virtual voidTGFrame::SetHeight(UInt_t h)
virtual voidTGCompositeFrame::SetLayoutBroken(Bool_t on = kTRUE)
virtual voidSetLayoutHints(TGLayoutHints* l, TGButton* button = 0)
virtual voidTGCompositeFrame::SetLayoutManager(TGLayoutManager* l)
virtual voidTGCompositeFrame::SetMapSubwindows(Bool_t on)
virtual voidTGFrame::SetMaxHeight(UInt_t h)
virtual voidTGFrame::SetMaxWidth(UInt_t w)
virtual voidTGFrame::SetMinHeight(UInt_t h)
virtual voidTGFrame::SetMinWidth(UInt_t w)
virtual voidTGWindow::SetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetRadioButtonExclusive(Bool_t flag = kTRUE)
virtual voidTGFrame::SetSize(const TGDimension& s)
virtual voidTGGroupFrame::SetTextColor(Pixel_t color, Bool_t local = kTRUE)
virtual voidTGGroupFrame::SetTextFont(const char* fontName, Bool_t local = kTRUE)
virtual voidTGGroupFrame::SetTextFont(FontStruct_t font, Bool_t local = kTRUE)
virtual voidSetTitle(TGString* title)
virtual voidSetTitle(const char* title)
virtual voidTGGroupFrame::SetTitlePos(TGGroupFrame::ETitlePos pos = kLeft)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTGFrame::SetWidth(UInt_t w)
virtual voidTGWindow::SetWindowName(const char* name = "0")
virtual voidTGFrame::SetX(Int_t x)
virtual voidTGFrame::SetY(Int_t y)
virtual voidShow()
virtual voidTGCompositeFrame::ShowFrame(TGFrame* f)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Bool_tTGCompositeFrame::TranslateCoordinates(TGFrame* child, Int_t x, Int_t y, Int_t& fx, Int_t& fy)
virtual voidTGFrame::UnmapWindow()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTGGroupFrame::DoRedraw()
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
static Time_tTGFrame::GetLastClick()
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
voidInit()
voidTObject::MakeZombie()
TGWindow&TGWindow::operator=(const TGWindow& tgw)
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)

Data Members

public:
enum TGGroupFrame::ETitlePos { kLeft
kCenter
kRight
};
enum TGWindow::EEditMode { kEditEnable
kEditDisable
kEditDisableEvents
kEditDisableGrab
kEditDisableLayout
kEditDisableResize
kEditDisableHeight
kEditDisableWidth
kEditDisableBtnEnable
kEditDisableKeyEnable
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Bool_tfExclGroupkTRUE if group is exclusive
Bool_tfRadioExclkTRUE if radio buttons are exclusive
Bool_tfDrawBorderkTRUE if border and title are drawn
TMap*fMapOfButtonsmap of button/id pairs in this group
TGString*TGGroupFrame::fTexttitle text
FontStruct_tTGGroupFrame::fFontStructtitle fontstruct
GContext_tTGGroupFrame::fNormGCtitle graphics context
Int_tTGGroupFrame::fTitlePos*OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",1="Right")}*
Bool_tTGGroupFrame::fHasOwnFontkTRUE - font defined locally, kFALSE - globally
static const TGFont*TGGroupFrame::fgDefaultFont
static const TGGC*TGGroupFrame::fgDefaultGC
TGLayoutManager*TGCompositeFrame::fLayoutManagerlayout manager
TList*TGCompositeFrame::fListcontainer of frame elements
Bool_tTGCompositeFrame::fLayoutBrokenno layout manager is used
Int_tTGCompositeFrame::fMustCleanupcleanup mode (see EFrameCleanup)
Bool_tTGCompositeFrame::fMapSubwindowskTRUE - map subwindows
static TGLayoutHints*TGCompositeFrame::fgDefaultHintsdefault hints used by AddFrame()
Int_tTGFrame::fXframe x position
Int_tTGFrame::fYframe y position
UInt_tTGFrame::fWidthframe width
UInt_tTGFrame::fHeightframe height
UInt_tTGFrame::fMinWidthminimal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMaxHeightmaximal frame height
Int_tTGFrame::fBorderWidthframe border width
UInt_tTGFrame::fOptionsframe options
Pixel_tTGFrame::fBackgroundframe background color
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGFrameElement*TGFrame::fFEpointer to frame element
static Bool_tTGFrame::fgInit
static Pixel_tTGFrame::fgDefaultFrameBackground
static Pixel_tTGFrame::fgDefaultSelectedBackground
static Pixel_tTGFrame::fgWhitePixel
static Pixel_tTGFrame::fgBlackPixel
static const TGGC*TGFrame::fgBlackGC
static const TGGC*TGFrame::fgWhiteGC
static const TGGC*TGFrame::fgHilightGC
static const TGGC*TGFrame::fgShadowGC
static const TGGC*TGFrame::fgBckgndGC
static Time_tTGFrame::fgLastClick
static UInt_tTGFrame::fgLastButton
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static Window_tTGFrame::fgDbw
static UInt_tTGFrame::fgUserColor
const TGWindow*TGWindow::fParentParent window
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
TStringTGWindow::fNamename of the window used in SavePrimitive()
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
Handle_tTGObject::fIdX11/Win32 Window identifier
TGClient*TGObject::fClientConnection to display server
TList*TQObject::fListOfSignals! list of signals from this object
TList*TQObject::fListOfConnections! list of connections to this object

Class Description

                                                                      
 The TGButtonGroup widget organizes TGButton widgets in a group.      
                                                                      
 A button group widget makes it easier to deal with groups of buttons.
 A button in a button group is associated with a unique identifier.   
 The button group emits a Clicked() signal with this identifier when  
 the button is clicked. Thus, a button group is an ideal solution     
 when you have several similar buttons and want to connect all their  
 Clicked() signals, for example, to one slot.                         
                                                                      
 An exclusive button group switches off all toggle buttons except     
 the one that was clicked. A button group is by default non-exclusive.
 All radio buttons that are inserted, will be mutually exclusive even 
 if the button group is non-exclusive.                                
                                                                      
                                                                      
 There are two ways of using a button group:                          
                                                                      
    The button group is a parent widget of a number of buttons,       
    i.e. the button group is the parent argument in the button        
    constructor. The buttons are assigned identifiers 1, 2, 3 etc.    
   in the order they are created or you can specify button id in     
    the button constructor. A TGButtonGroup can display a frame and   
    a title because it inherits from TGGroupFrame.                    
                                                                      
 Example:                                                             
                                                                      
    // vertical frame without border and title                        
    TGVButtonGroup *bg = new TGVButtonGroup(main_frame);              
                                                                      
    // create text button with id=1                                   
    TGTextButton *button1 = new TGTextButton(bg,"some text");         
                                                                      
    // create another text button with id=2                           
    TGTextButton *button2 = new TGTextButton(bg,"another text");      
                                                                      
    // map all buttons                                                
    bg->Show();                                                       
                                                                      
 NOTE: there is no need to call AddFrame() since the buttons are      
 automatically added with a default layout hint to their parent,      
 i.e. the buttongroup. To override the default layout hints use the   
 SetLayoutHints() method.                                             
                                                                      
  ButtonGroup Signals:                                                
                                                                      
    Pressed(Int_t id)  -->  is emitted when a button in the group is  
                            pressed down. The id argument is the      
                            button's identifier.                      
    Released(Int_t id) -->  is emitted when a button in the group is  
                            released. The id argument is the button's 
                            identifier.                               
    Clicked(Int_t id)  -->  is emitted when a button in the group is  
                            clicked. The id argument is the button's  
                            identifier.                               
                                                                      
                                                                      
 The TGHButtonGroup widget organizes TGButton widgets in a group      
 with one horizontal row. TGHButtonGroup is a convenience class that  
 offers a thin layer on top of TGButtonGroup. It inherits from        
 TGButtonGroup.                                                       
                                                                      
 The TGVButtonGroup widget organizes TGButton widgets in a group      
 with one vertical column. TGVButtonGroup is a convenience class that 
 offers a thin layer on top of TGButtonGroup. It inherits from        
 TGButtonGroup.                                                       
                                                                      

TGButtonGroup(const TGWindow *parent, const TString &title, UInt_t options, GContext_t norm, FontStruct_t font, ULong_t back)
 Constructor. Layout 1 row or 1 column.
TGButtonGroup(const TGWindow *parent, UInt_t r, UInt_t c, Int_t s, Int_t h, const TString &title, GContext_t norm , FontStruct_t font , ULong_t back)
 Constructor. Layout defined by TGMatrixLayout:
    r = number of rows
    c = number of columns
    s = interval between frames
    h = layout hints
void Init()
 Default init.
~TGButtonGroup()
 Destructor, we do not delete the buttons.
void SetBorderDrawn(Bool_t enable)
 Makes border to be visible/invisible.
void SetExclusive(Bool_t enable)
 Sets the button group to be exclusive if enable is kTRUE,
 or to be non-exclusive if enable is kFALSE.
 An exclusive button group switches off all other toggle buttons when
 one is switched on. This is ideal for groups of radio-buttons
 A non-exclusive group allow many buttons to be switched on at the same
 time. The default setting is kFALSE.
void SetRadioButtonExclusive(Bool_t enable)
 If enable is kTRUE, this button group will treat radio buttons as
 mutually exclusive, and other buttons according to IsExclusive().
 This function is called automatically whenever a TGRadioButton
 is inserted, so you should normally never have to call it.
void SetButton(Int_t id, Bool_t down)
 Sets the button with id to be on/down, and if this is an
 exclusive group, all other button in the group to be off/up.
Int_t Insert(TGButton *button, Int_t id)
 Inserts a button with the identifier id into the button group.
 Returns the button identifier.

 It is not necessary to manually insert buttons that have this button
 group as their parent widget. An exception is when you want custom
 identifiers instead of the default 1, 2, 3 etc.

 The button is assigned the identifier id or an automatically
 generated identifier.  It works as follows: If id > 0, this
 identifier is assigned.  If id == -1 (default), the identifier is
 equal to the number of buttons in the group+1.  If id is any other
 negative integer, for instance -2, a unique identifier (negative
 integer <= -2) is generated.

 Inserting several buttons with id = -1 assigns the identifiers 1,
 2, 3, etc.
void Remove(TGButton *button)
 Removes a button from the button group.
TGButton * Find(Int_t id)
 Finds and returns a pointer to the button with the specified
 identifier id. Returns null if the button was not found.
Int_t GetId(TGButton *button)
 Finds and returns the id of the button.
 Returns -1 if the button is not a member of this group.
void ButtonPressed()
 This slot is activated when one of the buttons in the group emits the
 Pressed() signal.
void ButtonReleased()
 This slot is activated when one of the buttons in the group emits the
 Released() signal.
void ButtonClicked()
 This slot is activated when one of the buttons in the group emits the
 Clicked() signal.
void ReleaseButtons()
 This slot is activated when one of the buttons in the
 exclusive group emits the Pressed() signal.
void Show()
 Show group of buttons.
void Hide()
 Hide group of buttons.
void SetTitle(TGString *title)
 Set or change title.
void SetTitle(const char *title)
 Set or change title.
void SetLayoutHints(TGLayoutHints *l, TGButton *button)
 Set layout hints for the specified button or if button=0 for all
 buttons.
void SavePrimitive(ostream &out, Option_t *option /*= ""*/)
 Save a button group widget as a C++ statement(s) on output stream out
void Pressed(Int_t id)
{ Emit("Pressed(Int_t)",id); }
void Released(Int_t id)
{ Emit("Released(Int_t)",id);}
void Clicked(Int_t id)
{ Emit("Clicked(Int_t)",id); }
Bool_t IsExclusive()
{ return fExclGroup; }
Bool_t IsRadioButtonExclusive()
{ return fRadioExcl; }
Bool_t IsBorderDrawn()
{ return fDrawBorder; }
Int_t GetCount()
{ return fMapOfButtons->GetSize(); }
TGButton * GetButton(Int_t id)
{ return Find(id); }
void DrawBorder()
{ if (fDrawBorder) TGGroupFrame::DrawBorder(); }

Author: Valeriy Onuchin & Fons Rademakers 16/10/2000
Last update: root/gui:$Name: $:$Id: TGButtonGroup.cxx,v 1.27 2006/11/10 10:47:38 antcheva 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.