SetCursor
SetCursor Xpos, Ypos
 
Parameters:

    Xpos = The X coordinate of where you wish to position the Text output cursor
    Ypos = The Y coordinate of where you wish to position the Text output cursor
Returns: NONE
 

SetCursor positions the Print cursor. While setting the print cursor is invisible to the user, the print command uses the print cursors position when it outputs.



FACTS:


* By default the print Cursor will be set to X position 0 and Y position 0.

* Each time a print command is executed, the print cursor will automatically move to the next line for you.

* By default, when the print cursor moves to a new line, it's X position is set to current margin position, which is normally zero. If you want to change this, use CursorMargin




Mini Tutorial:


This example manually sets the print cursor to displays a message

  
  
; Set the Print Cursor position to 100,150
  SetCursor 100,150
  
; Display a text message at the current cursor's position.
  Print "Hello World"
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  




This example would output.

  
  Hello World
  

 
Related Info: CursorLineFeed | CursorMargin | GetCursorLineFeed | GetCursorMargin | GetCursorX | GetCursorY | Print | SetCursorX | SetCursorY :
 


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