Tuesday, 19 August 2008

Use of Function: DialogBox

The function DialogBox displays a message, the buttons included in the dialog are controlled by an argument.


Syntax: DialogBox(Style, Title, Body[, Body])



Style (determines the buttons displayed; one of the following macros):

  • M4_BTN_OK
  • M4_BTN_OK_CANCEL
  • M4_BTN_ABORT_RETRY_IGNORE
  • M4_BTN_YES_NO_CANCEL
  • M4_BTN_YES_NO
  • M4_BTN_RETRY_CANCEL

Return value (one of the following macros):

  • M4_OK
  • M4_CANCEL
  • M4_ABORT
  • M4_RETRY
  • M4_IGNORE
  • M4_YES
  • M4_NO

Note: For multiple language support use the function GetErrorString to identify the title and body.

Note: For execution in server, the function assumes the result M4_OK. However, make sure you use the function only in client.

No comments: