27 Int_t GetUnID(
void) {
return ++nID; }
41 virtual ~MyButtonTest();
44 void SetGroupEnabled(
Bool_t);
54 Connect(
"CloseWindow()",
"MyButtonTest",
this,
"DoExit()");
80 fCheckb[0]->
Connect(
"Toggled(Bool_t)",
"MyButtonTest",
this,
81 "SetGroupEnabled(Bool_t)");
85 fExit->
Connect(
"Clicked()",
"MyButtonTest",
this,
"DoExit()");
91 fButtonGroup->SetState(
kTRUE);
93 SetWindowName(
"My Button Group");
95 Resize(GetDefaultSize());
98 fButtonGroup->SetRadioButtonExclusive(
kTRUE);
102 MyButtonTest::~MyButtonTest()
108 void MyButtonTest::DoExit()
119 void MyButtonTest::SetGroupEnabled(
Bool_t on)
121 fButtonGroup->SetState(on);
124 void buttongroupState()
126 new MyButtonTest(
gClient->GetRoot(),100,100);
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
R__EXTERN TApplication * gApplication
#define ClassDef(name, id)
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.