31 const char *prompt,
const char *defval,
32 char *retstr,
UInt_t options) :
62 tbuf->
AddText(0, defval?defval:
"");
84 fCancel->Associate(
this);
86 height = fCancel->GetDefaultHeight();
87 width =
TMath::Max(width, fCancel->GetDefaultWidth());
93 hf->
Resize((width + 20) * 2, height);
123 retstr =
new char[256];
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
virtual UInt_t GetDefaultHeight() const
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
virtual void SetFocus()
Set focus to this text entry.
const char * GetString() const
void AddText(Int_t pos, const char *text)
int main(int argc, char **argv)
TGTextBuffer * GetBuffer() const
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
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.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Short_t Max(Short_t a, Short_t b)
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).