showAlert


procedure showAlert(title: string; message:string; img:image; alertType:alert);

Displays an alert on the screen. The screen cannot contain any other form elements (except commands) when an alert is displayed. An alert can play the sound when it is displayed. Alert type can be any of the following:

  var cm : command;

  begin
    showAlert('New message', 'You have just received a message from MrSmith', loadImage('/img1.png'), ALERT_INFO);
    playAlertSound;

    cm := createCommand('Read', CM_OK, 1);
    addCommand(cm);

    repeat
      delay(100);
    until getClickedCommand <> emptyCommand;

    showForm; // this will clear alert from the screen
    ...     
  end.

See also: User-interface, playAlertSound