65 UInt_t w, UInt_t h,
char *label,
char *ret_str,
66 UInt_t options):TGTransientFrame(p,
main, w, h, options)
72 ChangeOptions((GetOptions() & ~kVerticalFrame) | kHorizontalFrame);
74 fF1 =
new TGCompositeFrame(
this, 60, 20, kVerticalFrame | kFixedWidth);
75 fF2 =
new TGCompositeFrame(
this, 60, 20, kHorizontalFrame);
77 fOkButton =
new TGTextButton(
fF1,
new TGHotString(
"&Ok"), 1);
79 fF1->Resize(
fOkButton->GetDefaultWidth() + 40, GetDefaultHeight());
84 fL1 =
new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 2, 3, 0);
85 fL21 =
new TGLayoutHints(kLHintsTop | kLHintsRight, 2, 5, 10, 0);
91 fLabel =
new TGLabel(
fF2,
new TGHotString(label));
100 fText->Associate(
this);
101 fText->Resize(220,
fText->GetDefaultHeight());
104 fL5 =
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 3, 5, 0, 0);
105 fL6 =
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 2, 0, 0);
112 Resize(GetDefaultSize());
118 gVirtualX->TranslateCoordinates(
main->GetId(), GetParent()->GetId(),
119 (Int_t) (((TGFrame *)
main)->GetWidth() -
121 (Int_t) (((TGFrame *)
main)->GetHeight() -
122 fHeight) >> 1, ax, ay, wdum);
124 UInt_t root_w, root_h;
125 gVirtualX->GetWindowSize(fClient->GetRoot()->GetId(), ax, ay, root_w, root_h);
126 ax = (root_w - fWidth) >> 1;
127 ay = (root_h - fHeight) >> 1;
131 SetWMPosition(ax, ay);
133 SetWindowName(
"Enter Text");
135 SetMWMHints(kMWMDecorAll | kMWMDecorMaximize | kMWMDecorMenu,
136 kMWMFuncAll | kMWMFuncMaximize | kMWMFuncResize, kMWMInputModeless);
139 fClient->WaitFor(
this);
390 char *host):TGMainFrame(p, w, h)
400 fMenuFile =
new TGPopupMenu(fClient->GetRoot());
405 fMenuBar =
new TGMenuBar(
this, 1, 1, kHorizontalFrame);
407 new TGLayoutHints(kLHintsTop | kLHintsLeft, 0, 4, 0, 0));
410 new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX, 0, 0, 1, 1));
413 fTab =
new TGTab(
this, 600, 400);
417 TGCompositeFrame *tf =
fTab->AddTab(
"Histo");
418 fTabHisto =
new TGCompositeFrame(tf, 60, 20, kVerticalFrame);
423 new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 3, 3, 3, 0));
429 fHorz1->AddFrame(
fListBox,
new TGLayoutHints(kLHintsExpandY, 0, 0, 0, 0));
432 fCanvas =
new TRootEmbeddedCanvas(
"Canvas",
fHorz1, 400, 400);
434 new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0));
438 fTabHisto->AddFrame(
fHorz2,
new TGLayoutHints(kLHintsExpandX, 0, 0, 0, 0));
443 fHorz2->AddFrame(
fBUpdate,
new TGLayoutHints(kLHintsCenterX, 10, 10, 4, 4));
448 fHorz2->AddFrame(
fBClear,
new TGLayoutHints(kLHintsCenterX, 10, 10, 4, 4));
450 tf->AddFrame(
fTabHisto,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 0, 0, 0, 0));
454 tf =
fTab->AddTab(
"Status");
455 fTabStatus =
new TGCompositeFrame(tf, 60, 20, kVerticalFrame);
462 AddFrame(
new TGLabel(
fTabStatus,
"Here will come the experiment status display"),
463 new TGLayoutHints(kLHintsTop, 100, 100, 100, 0));
464 tf->AddFrame(
fTabStatus,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 0, 0, 0, 0));
468 AddFrame(
fTab,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0));
470 SetWindowName(
"RMidas");
473 Resize(GetDefaultSize());
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
TGTextDialog(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, char *label, char *ret_str, UInt_t options=kVerticalFrame)
virtual void CloseWindow()