
UPA-USB Device Programmer52
Copyright © 2005 - 2007 ELRASOFT Ltd., www.elrasoft.com, www.elrasoft.eu
4.4 Message and Input Boxes
procedure AddMsg( Text: string )
procedure ClearMsgs
function InBox( Caption, EditLabel: string; var Value: string ): boolean
function MsgBox( Text, Caption: string; Flags: integer ): integer
4.4.1 AddMsg
procedure AddMsg( Text: string )
4.4.2 ClearMsg
procedure ClearMsgs;
4.4.3 InBox
function InBox( Caption, EditLabel: string; var Value: string ): boolean
Displays a prompt in a dialog box, waits for the user to input text or click a button, and
returns the contents of the text box to Value parameter.
Parameters
Caption: string
string that contains the input box title
EditLabel: string
string that contains the edit control label
Value: string
Return Value
If the user clicks OK or presses ENTER, the InBox function returns True and Value
parameter, whatever is in the text box. If the user clicks Cancel, the function returns False.
4.4.4 MsgBox
function MsgBox( Text, Caption: string; Flags: integer ): integer
The MsgBox function creates, displays, and operates a message box
Parameters
Text: string
string that contains the message to be displayed
Caption: string
string that contains the dialog box title
Flags: integer
Specifies the contents and behavior of the dialog box. This parameter can be a combination of
flags from the following groups of flags. To indicate the buttons displayed in the message
box, specify one of the following values.
MB_OK
The message box contains one push button: OK. This is the default.
MB_OKCANCEL
The message box contains two push buttons: OK and Cancel.
MB_ABORTRETRYIGNORE
The message box contains three push buttons: Abort, Retry, and Ignore.
Comentários a estes Manuais