|
GetScreenClose | ||
State = GetScreenClose() | ||
Parameters: NONE | ||
Returns: State = The Close gadget State (0= not pressed, 1 = pressed) |
||
The GetScreenClose function checks if the close gadget (the (X) icon) on your window has been pressed. The function will return a TRUE (1) when the user clicks the close gadget. FACTS: * Normally when the close gadget is clicked, the PlayBASIC run time will automatically exit by default. This is to ensure the user can easily break out of their programs, while working on them. So in order to read the close gadget, we have to disable this feature using the BreakKey command. * Reading the close gadget requires windows event monitoring, PlayBASIC preforms this monitoring during each 'SYNC'. So if you're program doesn't sync, it can be very hard to break out. Mini Tutorial: This example
This example would output.
|
Related Info: | BreakKey | GetBreakKey : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |