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

msgbox.h File Reference

Go to the source code of this file.

Compounds

class  MsgBoxText
 Contains a set of standard message strings. More...


Functions

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)

Variables

const int mfWarning = 0x0000
const int mfError = 0x0001
const int mfInformation = 0x0002
const int mfConfirmation = 0x0003
const int mfYesButton = 0x0100
const int mfNoButton = 0x0200
const int mfOKButton = 0x0400
const int mfCancelButton = 0x0800
const int mfYesNoCancel = mfYesButton | mfNoButton | mfCancelButton
const int mfOKCancel = mfOKButton | mfCancelButton


Detailed Description

msgbox.h

Definition in file msgbox.h.


Function Documentation

ushort inputBox ( const char * Title,
const char * aLabel,
char * s,
uchar limit )
 

Displays an input box with the given title `title' and label `aLabel'. Accepts input to string `s' with a maximum of `limit' characters.

ushort inputBoxRect ( const TRect & bounds,
const char * title,
const char * aLabel,
char * s,
uchar limit )
 

Displays an input box with the given bounds `bounds', title `title' and label `aLabel'. Accepts input to string `s' with a maximum of `limit' characters.

ushort messageBox ( unsigned aOptions,
const char * msg,
... )
 

Displays a message box. This form uses `msg' as a format string using the additional parameters that follow it. `aOptions' is set to one of the message box constants defined for messageBox().

ushort messageBox ( const char * msg,
ushort aOptions )
 

Displays a message box with the given string in `msg'. `aOptions' is a combination of one or more of the following message box constants:

 Constant       Value  Meaning

 mfWarning      0x0000 Display a Warning box
 mfError        0x0001 Display a Error box
 mfInformation  0x0002 Display an Information Box
 mfConfirmation 0x0003 Display a Confirmation Box
 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
 

The standard "Yes, No, Cancel" dialog box is defined as:

 mfYesNoCancel = mfYesButton | mfNoButton | mfCancelButton;
 

The standard "OK, Cancel" dialog box is defined as:

 mfOKCancel = mfOKButton | mfCancelButton;
 

ushort messageBoxRect ( const TRect & r,
ushort aOptions,
const char * msg,
... )
 

Displays a message box in the given rectangle `r'. This form uses `msg' as a format string using the additional parameters that follow it. `aOptions' is set to one of the message box constants defined for messageBox().

ushort messageBoxRect ( const TRect & r,
const char * msg,
ushort aOptions )
 

Displays a message box with the given string in `msg' in the given rectangle `r'. `aOptions' is set to one of the message box constants defined for messageBox().


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