PopupWindow
- display pop-up window

Miscellaneous functions
(AFL 3.0)


SYNTAX PopupWindow( bodytext, captiontext, timeout = 5, left = -1, top = -1, width = -1, height = -1, captureFocus = True );
RETURNS NOTHING
FUNCTION The function creates and displays pop-up window with specified bodytext, captiontext.

Parameters:

  • bodytext - the string containing the text of the window body
  • caption - the string containing the text of window caption
  • timeout - auto-close time in seconds (default 5 seconds)
  • left - top-left corner X co-ordinate (default = -1 -means auto-center)
  • top - top-left corner Y co-ordinate (default = -1 - means auto-center)
  • width = width in pixels, -1 - use default width
  • height = height in pixels, -1 - use default height
  • captureFocus - decides whenever popup window captures input focus or not
EXAMPLE if( ParamTrigger("Display Popup Window", "Press here" ) )
{
    
PopupWindow("Current time is: " + Now(),"Alert", 2, 640*mtRandom(), 480*mtRandom());
}
SEE ALSO ParamColor() function , ParamDate() function , ParamField() function , ParamList() function , PARAMSTR() function , ParamStyle() function , ParamTime() function , ParamToggle() function , ParamTrigger() function

References:

The PopupWindow function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference