Table of Contents

MessageBox

Description

Display a modal pop-up message box.

Function prototype

uint MessageBox <string:Message> <uint:Style>

Arguments

Name Type Comment
Message string The text to be displayed in the message box.
Style uint A conbination of bit flags that specify the buttons, icons and behaviour of the message box (see codes below).

The supported values of Style are identical to those of the Microsoft Foundation Classes Message box styles, which are:

Return value

The return value is identical to those of the Microsoft Foundation Classes AfxMessageBox function, which are:

Example

// style is question icon and yes/no buttons, testing for IDYES
if <iseq 6 <MessageBox "Restart L3DT?" 0x00000024>>
  application.Restart
endif

… the output of which looks like:

An example message box

Comments

None.