You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

function MessageBox(text : string; title : string; style : integer) : integer;

Displays a message box to the user.

The valid values for the style are:

mbOK

mbOKCANCEL

mbABORTRETRYIGNORE

mbYESNOCANCEL

mbRETRYCANCEL

mbICONHAND

mbICONQUESTION

mbICONEXCLAMATION

mbICONASTERISK

mbDEFBUTTON1

mbDEFBUTTON2

mbDEFBUTTON3

mbDEFBUTTON4

The MessageBox function return value corresponds to the button which the user pressed:

mrOK

mrCANCEL

mrABORT

mrRETRY

mrIGNORE

mrYES

mrNO

mrCLOSE

mrHELP

eg.

if MessageBox("Do you want to cancel the build", "Cancel Build", mbOKCANCEL) = mrOK then

 // build needs to stop

end if

  • No labels