// // Author: Ilka Antcheva 1/12/2006 // This macro gives an example for changing text button labels anytime // the Start or Pause buttons are clicked. // To run it do either: // .x buttonChangelabel.C // .x buttonChangelabel.C++ #include #include #include class MyMainFrame : public TGMainFrame { private: TGCompositeFrame *fCframe; TGTextButton *fStart, *fPause, *fExit; Bool_t start, pause; public: MyMainFrame(const TGWindow *p, UInt_t w, UInt_t h); virtual ~MyMainFrame(); // slots void ChangeStartLabel(); void ChangePauseLabel(); ClassDef(MyMainFrame, 0) };