GLBasic User Manual

Main sections

ALLOWESCAPE

ALLOWESCAPE a#



Allows (a#=TRUE) or denies (a#=FALSE) the user from aborting the program using the ESC key. This also disables the X-icon in PocketPC programs.

The default is TRUE.

    ALLOWESCAPE TRUE
    PRINT "Pressing ESC now will abort the program",0,0
    PRINT "Click the mouse to continue instead",0,10
    SHOWSCREEN
    MOUSEWAIT

    ALLOWESCAPE FALSE
    PRINT "Pressing ESC now will NOT abort the program",0,0
    PRINT "Click the mouse to continue instead.",0,10
    SHOWSCREEN
    MOUSEWAIT

See also...