library: libGui #include "TGMsgBox.h" |
TGMsgBox
class description - header file - source file - inheritance tree (.pdf)
protected:
TGMsgBox(const TGMsgBox&)
TGMsgBox& operator=(const TGMsgBox&)
void PMsgBox(const char* title, const char* msg, const TGPicture* icon, Int_t buttons, Int_t* ret_code, Int_t text_align)
public:
TGMsgBox(const TGWindow* p = 0, const TGWindow* main = 0, const char* title = "0", const char* msg = "0", const TGPicture* icon = 0, Int_t buttons = kMBDismiss, Int_t* ret_code = 0, UInt_t options = kVerticalFrame, Int_t text_align = kTextCenterX|kTextCenterY)
TGMsgBox(const TGWindow* p, const TGWindow* main, const char* title, const char* msg, EMsgBoxIcon icon, Int_t buttons = kMBDismiss, Int_t* ret_code = 0, UInt_t options = kVerticalFrame, Int_t text_align = kTextCenterX|kTextCenterY)
virtual ~TGMsgBox()
static TClass* Class()
virtual void CloseWindow()
virtual TClass* IsA() const
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGButton* fYes
TGButton* fNo
TGButton* fOK
TGButton* fApply buttons in dialog box
TGButton* fRetry
TGButton* fIgnore
TGButton* fCancel buttons in dialog box
TGButton* fClose
TGButton* fYesAll
TGButton* fNoAll buttons in dialog box
TGButton* fNewer
TGButton* fAppend
TGButton* fDismiss buttons in dialog box
TGIcon* fIcon icon
TGHorizontalFrame* fButtonFrame frame containing buttons
TGHorizontalFrame* fIconFrame frame containing icon and text
TGVerticalFrame* fLabelFrame frame containing text
TGLayoutHints* fL1
TGLayoutHints* fL2
TGLayoutHints* fL3
TGLayoutHints* fL4
TGLayoutHints* fL5 layout hints
TList* fMsgList text (list of TGLabels)
Int_t* fRetCode address to store return code
TMsgBox
A message dialog box.
TGMsgBox(const TGWindow *p, const TGWindow *main, const char *title, const char *msg, EMsgBoxIcon icon, Int_t buttons, Int_t *ret_code, UInt_t options, Int_t text_align)
Create a message dialog box with the following parameters:.
title: Window title
msg: Message to be shown ('\n' may be used to split it in lines)
icon: Picture to be shown at the left on the dialog window.
It might take any of the following values:
kMBIconStop, kMBIconQuestion,
kMBIconExclamation, kMBIconAsterisk
buttons: Buttons to be shown at the botton of the dialgo window.
Look at EMsgBoxButton for the different possible values.
ret_code: It will hold the value of the button pressed when the
dialog is closed
options: Frame options of this dialog window.
text_align: Align options for 'msg'. See ETextJustification for the values.
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.
void CloseWindow()
Close dialog box. Before deleting itself it sets the return code
to kMBClose.
Author: Fons Rademakers 09/01/98
Last update: root/gui:$Name: $:$Id: TGMsgBox.cxx,v 1.15 2006/07/09 05:27:54 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.