TGPictureButton


class description - source file - inheritance tree

class TGPictureButton : public TGButton


    protected:
virtual void DoRedraw() public:
TGPictureButton TGPictureButton(const TGWindow* p, const TGPicture* pic, Int_t id = -1, GContext_t norm = fgDefaultGC, UInt_t option = kRaisedFrame|kDoubleBorder) TGPictureButton TGPictureButton(const TGWindow* p, const TGPicture* pic, const char* cmd, Int_t id = -1, GContext_t norm = fgDefaultGC, UInt_t option = kRaisedFrame|kDoubleBorder) TGPictureButton TGPictureButton(TGPictureButton&) void ~TGPictureButton() TClass* Class() virtual TClass* IsA() const void SetPicture(const TGPicture* new_pic) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
const TGPicture* fPic picture to be put in button

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                                                             
                                                                      


TGPictureButton(const TGWindow *p, const TGPicture *pic, Int_t id, GContext_t norm, UInt_t option) : TGButton(p, id, norm, option)
 Create a picture button widget. The picture is not adopted and must
 later be freed by the user once the picture button is deleted (a single
 picture reference might be used by other buttons).

TGPictureButton(const TGWindow *p, const TGPicture *pic, const char *cmd, Int_t id, GContext_t norm, UInt_t option) : TGButton(p, id, norm, option)
 Create a picture button widget and set action command. The picture is
 not adopted and must later be freed by the user once the picture button
 is deleted (a single picture reference might be used by other
 buttons).

void SetPicture(const TGPicture *new_pic)
 Change a picture in a picture button. The picture is not adopted and
 must later be freed by the user once the picture button is deleted
 (a single picture reference might be used by other buttons).

void DoRedraw()
 Redraw picture button.



Inline Functions


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


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.