The checkbutton is used to change the split state of the button.
#include <iostream>
};
private:
public:
} ;
private:
public:
void DoExit() ;
void HandleMenu(
Int_t id) ;
};
{
Connect("CloseWindow()", "SplitButtonTest", this, "DoExit()") ;
DontCallClose() ;
fPopMenu->AddEntry(
"Button &1",
ID_1);
fPopMenu->AddEntry(
"Button &2",
ID_2);
fPopMenu->DisableEntry(
ID_2);
fPopMenu->AddEntry(
"Button &3",
ID_3);
fPopMenu->AddSeparator();
fPopMenu,
IDs.GetUnID());
fPopMenu->AddEntry(
"En&try with really really long name",
ID_4);
fPopMenu->AddEntry(
"&Exit",
ID_5);
fMButton->Connect(
"ItemClicked(Int_t)",
"SplitButtonTest",
this,
"HandleMenu(Int_t)");
fCButton->Connect(
"Toggled(Bool_t)",
"SplitButtonTest",
this,
"DoSplit(Bool_t)");
0, 10, 0, 0)) ;
fEButton->Connect(
"Toggled(Bool_t)",
"SplitButtonTest",
this,
"DoEnable(Bool_t)");
0, 10, 0, 0)) ;
SetWindowName("SplitButton Test") ;
Resize(GetDefaultSize()) ;
MapWindow() ;
} ;
SplitButtonTest::~SplitButtonTest()
{
Cleanup() ;
}
void SplitButtonTest::DoExit()
{
}
void SplitButtonTest::DoSplit(
Bool_t split)
{
}
void SplitButtonTest::DoEnable(
Bool_t on)
{
else
}
void SplitButtonTest::HandleMenu(
Int_t id)
{
switch (id) {
std::cout << "Button 1 was activated" << std::endl;
break;
std::cout << "Button 2 was activated" << std::endl;
break;
std::cout << "Button 3 was activated" << std::endl;
break;
std::cout << "Button with a really really long name was activated"
<< std::endl;
break;
DoExit();
break;
}
}
{
}
#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.