Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

msgbox.h

Go to the documentation of this file.
00001 /*
00002  * msgbox.h
00003  *
00004  * Turbo Vision - Version 2.0
00005  *
00006  * Copyright (c) 1994 by Borland International
00007  * All Rights Reserved.
00008  *
00009  * Modified by Sergio Sigala <sergio@sigala.it>
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 //  Message box classes
00094 
00095 int mfWarning      = 0x0000,       // Display a Warning box
00096     mfError        = 0x0001,       // Display a Error box
00097     mfInformation  = 0x0002,       // Display an Information Box
00098     mfConfirmation = 0x0003,       // Display a Confirmation Box
00099 
00100 // Message box button flags
00101 
00102     mfYesButton    = 0x0100,       // Put a Yes button into the dialog
00103     mfNoButton     = 0x0200,       // Put a No button into the dialog
00104     mfOKButton     = 0x0400,       // Put an OK button into the dialog
00105     mfCancelButton = 0x0800,       // Put a Cancel button into the dialog
00106 
00107     mfYesNoCancel  = mfYesButton | mfNoButton | mfCancelButton,
00108                                     // Standard Yes, No, Cancel dialog
00109     mfOKCancel     = mfOKButton | mfCancelButton;
00110                                     // Standard OK, Cancel dialog
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

Generated at Sat Sep 22 20:19:10 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001