#if defined( Uses_MsgBox ) && !defined( __MsgBox )
#define __MsgBox
#if defined( __BORLANDC__ )
#pragma option -Vo-
#endif
#if defined( __BCOPT__ ) && !defined (__FLAT__)
#pragma option -po-
#endif
class
_FAR TRect;
ushort messageBox( TStringView msg, ushort aOptions )
noexcept
;
ushort messageBox( unsigned aOptions,
const
char
*msg, ... )
noexcept
;
ushort messageBoxRect(
const
TRect &r, TStringView msg, ushort aOptions )
noexcept
;
ushort messageBoxRect(
const
TRect &r, ushort aOptions,
const
char
*msg, ... )
noexcept
;
ushort inputBox( TStringView Title, TStringView aLabel,
char
*s, uchar limit )
noexcept
;
ushort inputBoxRect(
const
TRect &bounds, TStringView title,
TStringView aLabel,
char
*s, uchar limit )
noexcept
;
const
int
mfWarning = 0x0000,
mfError = 0x0001,
mfInformation = 0x0002,
mfConfirmation = 0x0003,
mfYesButton = 0x0100,
mfNoButton = 0x0200,
mfOKButton = 0x0400,
mfCancelButton = 0x0800,
mfYesNoCancel = mfYesButton | mfNoButton | mfCancelButton,
mfOKCancel = mfOKButton | mfCancelButton;
class
MsgBoxText
{
public
:
static
const
char
* _NEAR yesText;
static
const
char
* _NEAR noText;
static
const
char
* _NEAR okText;
static
const
char
* _NEAR cancelText;
static
const
char
* _NEAR warningText;
static
const
char
* _NEAR errorText;
static
const
char
* _NEAR informationText;
static
const
char
* _NEAR confirmText;
};
#if defined( __BORLANDC__ )
#pragma option -Vo.
#endif
#if defined( __BCOPT__ ) && !defined (__FLAT__)
#pragma option -po.
#endif
#endif // Uses_MsgBox