27 Int_t GetUnID(
void) {
return ++nID; }
34 TGVButtonGroup *fButtonGroup;
35 TGCheckButton *fCheckb[4];
36 TGRadioButton *fRadiob[2];
41 ~MyButtonTest()
override;
44 void SetGroupEnabled(
Bool_t);
53 Connect(
"CloseWindow()",
"MyButtonTest",
this,
"DoExit()");
58 fCheckb[0]->SetToolTipText(
"Enable/Disable the button group");
71 fCheckb[0]->Connect(
"Toggled(Bool_t)",
"MyButtonTest",
this,
"SetGroupEnabled(Bool_t)");
75 fExit->Connect(
"Clicked()",
"MyButtonTest",
this,
"DoExit()");
81 fButtonGroup->SetState(
kTRUE);
83 SetWindowName(
"My Button Group");
85 Resize(GetDefaultSize());
88 fButtonGroup->SetRadioButtonExclusive(
kTRUE);
92MyButtonTest::~MyButtonTest()
98void MyButtonTest::DoExit()
109void MyButtonTest::SetGroupEnabled(
Bool_t on)
111 fButtonGroup->SetState(on);
114void buttongroupState()
116 new MyButtonTest(
gClient->GetRoot(), 100, 100);
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
#define ClassDef(name, id)
externTApplication * gApplication
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
A composite frame that layout their children in horizontal way.
TGHotString is a string with a "hot" character underlined.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
ROOT GUI Window base class.