47 const char *title,
const char *msg,
const TGPicture *icon,
53 PMsgBox(title, msg, icon, buttons, ret_code, text_align);
74 const char *title,
const char *msg,
EMsgBoxIcon icon,
84 if (!icon_pic)
Error(
"TGMsgBox",
"mb_stop_s.xpm not found");
89 if (!icon_pic)
Error(
"TGMsgBox",
"mb_question_s.xpm not found");
94 if (!icon_pic)
Error(
"TGMsgBox",
"mb_exclamation_s.xpm not found");
99 if (!icon_pic)
Error(
"TGMsgBox",
"mb_asterisk_s.xpm not found");
108 PMsgBox(title, msg, icon_pic, buttons, ret_code, text_align);
146 if (buttons &
kMBNo) {
153 if (buttons &
kMBOk) {
258 char *tmpMsg, *nextLine;
260 int len = strlen(msg) + 1;
261 tmpMsg =
new char[len];
265 strlcpy(nextLine, msg, len);
266 while ((nextLine = strchr(
line,
'\n'))) {
387 gVirtualX->LookupString(event, input,
sizeof(input), keysym);
const Mask_t kKeyPressMask
include TDocParser_001 C image html pict1_TDocParser_001 png width
void WaitFor(TGWindow *w)
Wait for window to be destroyed.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual UInt_t GetDefaultHeight() const
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
virtual void MapRaised()
map raised
virtual UInt_t GetDefaultWidth() const
virtual void DeleteWindow()
Delete window.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void SetTextJustify(Int_t tmode)
Set text justification.
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
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.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
virtual Bool_t HandleKey(Event_t *event)
Handle enter and escape keys (used as Ok and Cancel for now).
TGHorizontalFrame * fIconFrame
virtual ~TGMsgBox()
Destroy message dialog box.
void PMsgBox(const char *title, const char *msg, const TGPicture *icon, Int_t buttons, Int_t *ret_code, Int_t text_align)
Protected, common message dialog box initialization.
TGVerticalFrame * fLabelFrame
virtual void CloseWindow()
Close dialog box.
TGHorizontalFrame * fButtonFrame
TGMsgBox(const TGMsgBox &)
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message dialog box event.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
virtual void Add(TObject *obj)
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
R__ALWAYS_INLINE Bool_t IsZombie() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
int main(int argc, char **argv)
Short_t Max(Short_t a, Short_t b)