Name

Popup::TimedMessage — Display a message with a timeout and return when the user clicks "OK" or when the timeout expires.

Synopsis

Import Popup;
void Popup::TimedMessage ( string  message ,
  integer  timeout_seconds );

Parameters

string message

message to display

integer timeout_seconds

the timeout in seconds

Return Value

void

Description

There is also a "stop" button that will stop the countdown. If the user clicks that, the popup will wait forever (or until "OK" is clicked, of course).

Examples

  Popup::TimedMessage("This is a timed message", 2 );

Screenshot