39void MyMainFrame::DoSelect()
44void MyMainFrame::DoExit()
56 fSelected =
new TList;
58 for (
int i = 0; i < 20; ++i) {
60 fListBox->AddEntry(tmp, i+1);
62 fListBox->Resize(100,150);
70 fCheckMulti->Connect(
"Clicked()",
"MyMainFrame",
this,
"HandleButtons()");
74 show->SetToolTipText(
"Click here to print the selection you made");
75 show->Connect(
"Pressed()",
"MyMainFrame",
this,
"PrintSelected()");
78 exit->Connect(
"Pressed()",
"MyMainFrame",
this,
"DoExit()");
83 SetWindowName(
"List Box");
87 Resize(GetDefaultSize());
94MyMainFrame::~MyMainFrame()
104void MyMainFrame::HandleButtons()
109 id =
btn->WidgetId();
111 printf(
"HandleButton: id = %d\n",
id);
114 fListBox->SetMultipleSelections(
fCheckMulti->GetState());
118void MyMainFrame::PrintSelected()
124 if (fListBox->GetMultipleSelections()) {
125 Printf(
"Selected entries are:\n");
126 fListBox->GetSelectedEntries(fSelected);
129 Printf(
"Selected entries is: %d\n", fListBox->GetSelected());
#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 id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
R__EXTERN void * gTQSender
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
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.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
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.