home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vp11demo.zip
/
rtlsrc.rar
/
tv
/
MSGBOX.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-10-08
|
3KB
|
74 lines
{*******************************************************}
{ }
{ Turbo Pascal Version 7.0 }
{ Turbo Vision Unit }
{ }
{ Copyright (c) 1992 Borland International }
{ }
{*******************************************************}
{$PureInt+}
unit MsgBox;
{$X+,I-,S-}
interface
uses Objects, Use32;
const
{ Message box classes }
mfWarning = $0000; { Display a Warning box }
mfError = $0001; { Dispaly a Error box }
mfInformation = $0002; { Display an Information Box }
mfConfirmation = $0003; { Display a Confirmation Box }
mfInsertInApp = $0080; { Insert message box into application }
{ instead of the Desktop }
{ Message box button flags }
mfYesButton = $0100; { Put a Yes button into the dialog }
mfNoButton = $0200; { Put a No button into the dialog }
mfOKButton = $0400; { Put an OK button into the dialog }
mfCancelButton = $0800; { Put a Cancel button into the dialog }
mfYesNoCancel = mfYesButton + mfNoButton + mfCancelButton;
{ Standard Yes, No, Cancel dialog }
mfOKCancel = mfOKButton + mfCancelButton;
{ Standard OK, Cancel dialog }
{ MessageBox displays the given string in a standard sized }
{ dialog box. Before the dialog is displayed the Msg and Params }
{ are passed to FormatStr. The resulting string is displayed }
{ as a TStaticText view in the dialog. }
function MessageBox(const Msg: String; Params: Pointer;
AOptions: Word): Word;
{ MessageBoxRec allows the specification of a TRect for the }
{ message box to occupy. }
function MessageBoxRect(var R: TRect; const Msg: String; Params: Pointer;
AOptions: Word): Word;
{ InputBox displays a simple dialog that allows the user to }
{ type in a string. }
function InputBox(const Title, ALabel: String; var S: String;
Limit: Byte): Word;
{ InputBoxRect is like InputBox but allows the specification of }
{ a rectangle. }
function InputBoxRect(var Bounds: TRect; const Title, ALabel: String;
var S: String; Limit: Byte): Word;
implementation
uses Drivers, Views, Dialogs, App;
end.