Name

Popup::TimedOKCancel — Display a message with a timeout

Synopsis

Import Popup;
boolean Popup::TimedOKCancel ( string  message ,
  integer  timeout_seconds );

Parameters

string message

message to display

integer timeout_seconds

the timeout in seconds

Return Value

boolean

true --> "OK" or timer expired<br> false --> "Cancel"

Description

Display a message with a timeout and return when the user clicks "OK", "Cancel" or when the timeout expires ("OK" is assumed then).

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

Examples

  boolean ret = Popup::TimedOKCancel("This is a timed message", 2 );