User Input Functions; Msgbox() - LeCroy USB Protocol Suite Reference Manual

Verification script engine
Table of Contents

Advertisement

LeCroy Corporation

21 User Input Functions

21.1 MsgBox()

Displays a message in a dialog box, waits for the user to click a button, and returns an Integer indicating
which button the user clicked.
Format:
MsgBox(prompt, type, title)
Parameters:
prompt
type
title
The type argument values are:
Constant
_MB_OKONLY
_MB_OKCANCEL
_MB_RETRYCANCEL
_MB_YESNO
_MB_YESNOCANCEL
_MB_ABORTRETRYIGNORE
_MB_EXCLAMATION
_MB_INFORMATION
_MB_QUESTION
_MB_STOP
_MB_DEFBUTTON1
_MB_DEFBUTTON2
_MB_DEFBUTTON3
_MB_DEFBUTTON4
Required. String expression displayed as the message in the dialog box.
Optional. Numeric expression that is the sum of values specifying the number
and type of buttons to display, the icon style to use, the identity of the default button,
and the modality of the message box. If omitted, the default value for buttons is
_MB_OK. (See the list of possible values in the table below.)
Optional. String expression displayed in the title bar of the dialog box.
If title is omited, the script name is placed in the title bar.
Verification Script Engine Reference Manual
Description
Display OK button only (by Default).
Display OK and Cancel buttons.
Display Retry and Cancel buttons.
Display Yes and No buttons.
Display Yes, No, and Cancel buttons.
Display Abort, Retry, and Ignore buttons.
Display Warning Message icon.
Display Information Message icon.
Display Warning Query icon.
Display Critical Message icon.
First button is default.
Second button is default.
Third button is default.
Fourth button is default.
Page 94 of 107

Advertisement

Table of Contents
loading

Table of Contents