|
GetScreenFocus | ||
State = GetScreenFocus() | ||
Parameters: NONE | ||
Returns: State = The current focus state of the PB screen (1= has focus, 0 = lost focus) |
||
The GetScreenFocus() function checks if the PlayBASIC screen has focus or not. FACTS: * GetScreenFocus only works in windowed screen modes. * If your program has lost focus, it's a good idea to force your program to WAIT, so it doesn't hog the computers CPU too much. Mini Tutorial: This example displays a message if the PB screen has focus or not.
This example would output when the screen has focus.
|
Related Info: | GetScreenType | OpenScreen | Wait : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |