/*
* msgbox.h
*
* Turbo Vision - Version 2.0
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
* Modified by Sergio Sigala <ssigala@globalnet.it>
*/
#if defined( Uses_MsgBox ) && !defined( __MsgBox )
#define __MsgBox
#include <stdarg.h>
class TRect;
ushort messageBox( const char *msg, ushort aOptions );
ushort messageBox( unsigned aOptions, const char *msg, ... );
ushort messageBoxRect( const TRect &r, const char *msg, ushort aOptions );
ushort messageBoxRect( const TRect &r, ushort aOptions, const char *msg, ... );
ushort inputBox( const char *Title, const char *aLabel, char *s, uchar limit );
ushort inputBoxRect( const TRect &bounds, const char *title,
const char *aLabel, char *s, uchar limit );
const
// Message box classes
int mfWarning = 0x0000, // Display a Warning box
mfError = 0x0001, // Dispaly a Error box
mfInformation = 0x0002, // Display an Information Box
mfConfirmation = 0x0003, // Display a Confirmation Box
// Message box button flags
mfYesButton = 0x0100, // Put a Yes button into the dialog
mfNoButton = 0x0200, // Put a No button into the dialog
mfOKButton = 0x0400, // Put an OK button into the dialog
mfCancelButton = 0x0800, // Put a Cancel button into the dialog
mfYesNoCancel = mfYesButton | mfNoButton | mfCancelButton,
// Standard Yes, No, Cancel dialog
mfOKCancel = mfOKButton | mfCancelButton;
// Standard OK, Cancel dialog
/**
* This class stores a set of standard strings used in message boxes.
*
* If you need to change them, see file `tvtext.cc'.
* @see messageBox
* @short Contains a set of standard strings
*/
class MsgBoxText
{
public:
/**
* Standard value is "~Y~es".
*/
static const char * yesText;
/**
* Standard value is "~N~o".
*/
static const char * noText;
/**
* Standard value is "O~K~".
*/
static const char * okText;
/**
* Standard value is "Cancel".
*/
static const char * cancelText;
/**
* Standard value is "Warning".
*/
static const char * warningText;
/**
* Standard value is "Error".
*/
static const char * errorText;
/**
* Standard value is "Information".
*/
static const char * informationText;
/**
* Standard value is "Confirm".
*/
static const char * confirmText;
};
#endif // Uses_MsgBox
Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999