35 virtual ~MyMainFrame();
46 fExit =
new TGTextButton(fHor1,
"&Exit",
"gApplication->Terminate(0)");
55 fNumber->Connect(
"ValueSet(Long_t)",
"MyMainFrame",
this,
"DoSetlabel()");
56 (fNumber->GetNumberEntry())->Connect(
"ReturnPressed()",
"MyMainFrame",
this,
60 fLabel =
new TGLabel(fGframe,
"No input.");
66 SetWindowName(
"Number Entry");
68 Resize(GetDefaultSize());
72MyMainFrame::~MyMainFrame()
79void MyMainFrame::DoSetlabel()
84 fLabel->SetText(
Form(
"%ld",fNumber->GetNumberEntry()->GetIntNumber()));
92 new MyMainFrame(
gClient->GetRoot(), 50, 50);
#define ClassDef(name, id)
char * Form(const char *fmt,...)