TGRadioButton


class description - source file - inheritance tree

class TGRadioButton : public TGButton


    protected:
virtual void DoRedraw() void Init() void PSetState(EButtonState state) public:
TGRadioButton TGRadioButton(const TGWindow* p, const char* s, Int_t id = -1, GContext_t norm = fgDefaultGC, FontStruct_t font = fgDefaultFontStruct, UInt_t option = 0) TGRadioButton TGRadioButton(const TGWindow* p, TGHotString* s, Int_t id = -1, GContext_t norm = fgDefaultGC, FontStruct_t font = fgDefaultFontStruct, UInt_t option = 0) TGRadioButton TGRadioButton(const TGWindow* p, const char* s, const char* cmd, Int_t id = -1, GContext_t norm = fgDefaultGC, FontStruct_t font = fgDefaultFontStruct, UInt_t option = 0) TGRadioButton TGRadioButton(TGRadioButton&) virtual void ~TGRadioButton() TClass* Class() virtual TGDimension GetDefaultSize() const virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleCrossing(Event_t* event) virtual Bool_t HandleKey(Event_t* event) virtual TClass* IsA() const virtual void SetState(EButtonState state) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
TGHotString* fLabel radio button label Int_t fHKeycode hotkey EButtonState fPrevState radio button state const TGPicture* fOn button ON picture const TGPicture* fOff button OFF picture FontStruct_t fFontStruct font to draw label static Pixmap_t fgR1 static Pixmap_t fgR2 static Pixmap_t fgR3 static Pixmap_t fgR4 static Pixmap_t fgR5 static Pixmap_t fgR6 static FontStruct_t fgDefaultFontStruct static GContext_t fgDefaultGC

Class Description

                                                                      
 TGButton, TGTextButton, TGPictureButton, TGCheckButton and           
 TGRadioButton                                                        
                                                                      
 This header defines all GUI button widgets.                          
                                                                      
 TGButton is a button abstract base class. It defines general button  
 behaviour.                                                           
                                                                      
 Selecting a text or picture button will generate the event:          
 kC_COMMAND, kCM_BUTTON, button id, user data.                        
                                                                      
 Selecting a check button will generate the event:                    
 kC_COMMAND, kCM_CHECKBUTTON, button id, user data.                   
                                                                      
 Selecting a radio button will generate the event:                    
 kC_COMMAND, kCM_RADIOBUTTON, button id, user data.                   
                                                                      
 If a command string has been specified (via SetCommand()) then this  
 command string will be executed via the interpreter whenever a       
 button is selected. A command string can contain the macros:         
 $MSG   -- kC_COMMAND, kCM[CHECK|RADIO]BUTTON packed message          
           (use GET_MSG() and GET_SUBMSG() to unpack)                 
 $PARM1 -- button id                                                  
 $PARM2 -- user data pointer                                          
 Before executing these macros are expanded into the respective       
 Long_t's                                                             
                                                                      


TGRadioButton(const TGWindow *p, TGHotString *s, Int_t id, GContext_t norm, FontStruct_t font, UInt_t option) : TGButton(p, id, norm, option)
 Create a radio button widget. The hotstring will be adopted and deleted
 by the radio button.

TGRadioButton(const TGWindow *p, const char *s, Int_t id, GContext_t norm, FontStruct_t font, UInt_t option) : TGButton(p, id, norm, option)
 Create a radio button widget.

TGRadioButton(const TGWindow *p, const char *s, const char *cmd, Int_t id, GContext_t norm, FontStruct_t font, UInt_t option) : TGButton(p, id, norm, option)
 Create a radio button widget.

void Init()
 Common radio button initialization.

~TGRadioButton()
 Delete a radio button.

void PSetState(EButtonState state)
 Set radio button state.

Bool_t HandleButton(Event_t *event)
 Handle mouse button event.

Bool_t HandleCrossing(Event_t *event)
 Handle mouse crossing event.

Bool_t HandleKey(Event_t *event)
 Handle key event. This function will be called when the hotkey is hit.

void DoRedraw()
 Draw a radio button.



Inline Functions


          TGDimension GetDefaultSize() const
                 void SetState(EButtonState state)
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
        TGRadioButton TGRadioButton(TGRadioButton&)


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