00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #if defined( Uses_MsgBox ) && !defined( __MsgBox )
00013 #define __MsgBox
00014
00019 #include <stdarg.h>
00020
00021 class TRect;
00022
00052 ushort messageBox( const char *msg, ushort aOptions );
00053
00059 ushort messageBox( unsigned aOptions, const char *msg, ... );
00060
00066 ushort messageBoxRect( const TRect &r, const char *msg, ushort aOptions );
00067
00073 ushort messageBoxRect( const TRect &r, ushort aOptions, const char *msg,
00074 ... );
00075
00080 ushort inputBox( const char *Title, const char *aLabel, char *s,
00081 uchar limit );
00082
00088 ushort inputBoxRect( const TRect &bounds, const char *title,
00089 const char *aLabel, char *s, uchar limit );
00090
00091 const
00092
00093
00094
00095 int mfWarning = 0x0000,
00096 mfError = 0x0001,
00097 mfInformation = 0x0002,
00098 mfConfirmation = 0x0003,
00099
00100
00101
00102 mfYesButton = 0x0100,
00103 mfNoButton = 0x0200,
00104 mfOKButton = 0x0400,
00105 mfCancelButton = 0x0800,
00106
00107 mfYesNoCancel = mfYesButton | mfNoButton | mfCancelButton,
00108
00109 mfOKCancel = mfOKButton | mfCancelButton;
00110
00118 class MsgBoxText
00119 {
00120 public:
00124 static const char * yesText;
00128 static const char * noText;
00132 static const char * okText;
00136 static const char * cancelText;
00140 static const char * warningText;
00144 static const char * errorText;
00148 static const char * informationText;
00152 static const char * confirmText;
00153 };
00154
00155 #endif // Uses_MsgBox