56 void HandleMenu(
Int_t id) ;
66 Connect(
"CloseWindow()",
"SplitButtonTest",
this,
"DoExit()") ;
74 fPopMenu->AddEntry(
"Button &1",
ID_1);
75 fPopMenu->AddEntry(
"Button &2",
ID_2);
76 fPopMenu->DisableEntry(
ID_2);
77 fPopMenu->AddEntry(
"Button &3",
ID_3);
78 fPopMenu->AddSeparator();
82 fPopMenu,
IDs.GetUnID());
85 fPopMenu->AddEntry(
"En&try with really really long name",
ID_4);
86 fPopMenu->AddEntry(
"&Exit",
ID_5);
90 fMButton->Connect(
"ItemClicked(Int_t)",
"SplitButtonTest",
this,
96 fCButton->Connect(
"Toggled(Bool_t)",
"SplitButtonTest",
this,
"DoSplit(Bool_t)");
104 fEButton->Connect(
"Toggled(Bool_t)",
"SplitButtonTest",
this,
"DoEnable(Bool_t)");
113 SetWindowName(
"SplitButton Test") ;
115 Resize(GetDefaultSize()) ;
120SplitButtonTest::~SplitButtonTest()
126void SplitButtonTest::DoExit()
137void SplitButtonTest::DoSplit(
Bool_t split)
142void SplitButtonTest::DoEnable(
Bool_t on)
150void SplitButtonTest::HandleMenu(
Int_t id)
158 std::cout <<
"Button 1 was activated" << std::endl;
161 std::cout <<
"Button 2 was activated" << std::endl;
164 std::cout <<
"Button 3 was activated" << std::endl;
167 std::cout <<
"Button with a really really long name was activated"
#define ClassDefOverride(name, id)
R__EXTERN TApplication * gApplication
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
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.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.