31 const
char *prompt, const
char *defval,
32 char *retstr,
UInt_t options) :
59 fLabel =
new TGLabel(
this, prompt?prompt:
"Introduce value:");
62 tbuf->
AddText(0, defval?defval:
"");
65 fTE->Resize(260, fTE->GetDefaultHeight());
75 UInt_t width = 0, height = 0;
80 height = fOk->GetDefaultHeight();
81 width =
TMath::Max(width, fOk->GetDefaultWidth());
84 fCancel->Associate(
this);
86 height = fCancel->GetDefaultHeight();
87 width =
TMath::Max(width, fCancel->GetDefaultWidth());
93 hf->
Resize((width + 20) * 2, height);
96 SetWindowName(
"Get Input");
101 width = GetDefaultWidth();
102 height = GetDefaultHeight();
104 Resize(width, height);
110 SetWMSize(width, height);
111 SetWMSizeHints(width, height, width, height, 0, 0);
123 retstr =
new char[256];
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
const char * GetString() const
void AddText(Int_t pos, const char *text)
int main(int argc, char *argv[])
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Short_t Max(Short_t a, Short_t b)
TGTextBuffer * GetBuffer() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.