GetScreenType
ScreenType = GetScreenType()
 
Parameters: NONE
Returns:

    ScreenType = The current type of the screen mode in use (Windowed/FullScreen)
 

      The GetScreenType() function returns the screen mode type in use. So you can check if the program is running in windowed or full screen mode, without having to keep track of this yourself.


      Available Screen Types

           0 = No Display (not presently supported)
           1 = Run Program in a window
           2 = Full Screen Mode



FACTS:


      * None



Mini Tutorial:


      Read and display the current screen mode type.

  
  
; Get the Type of screen mode in use
  CurrentMode=GetScreenType()
  
; Display a message based on what type of screen is currently in use.
  If CurrentMode =1 Then   Print "Program is running in Windowed Mode"
  If CurrentMode =2 Then   Print "Program is running in Full Screen Mode"
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  


      Since PlayBASIC defaults to running programs in Windowed mode ( mode 1 ), this example will output.

  
  Program is running in Windowed Mode
  

 
Related Info: GetScreenFocus | OpenScreen :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com