CenterScreen
CenterScreen
 
Parameters: NONE
Returns: NONE
 

      CenterScreen positions the PlayBASIC screen (when in windowed mode) so that it is centered within your windows desktop display.



FACTS:


      * Only effects the screen when in windowed mode.



Mini Tutorial:


      Show how to place the window back in the center of the screen.

  
; Display the message to the Screen and wait for the user to press a key
  Print "Move the Window - Then Press any key"
  Sync
  WaitKey
  
; wait until theres NO input
  WaitNoKey
  
; Center the Screen so that's in the middle of the display again
  CenterScreen
  
  Print "I've put the screen back in the center again"
  Sync
  WaitKey
  




 
Related Info: GetDeskTopHeight | GetDeskTopWidth | GetScreenXpos | GetScreenYpos | PositionScreen | RenderToScreen :
 


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