SetCursorX
SetCursorX Xpos
 
Parameters:

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

SetCursorX positions only the Print cursors X position.

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 cursors X position to displays two messages to the screen. Each message is printed a different X coordinate, while the messages are displayed directly bellow one another down the screen.


  
  
; Set the Print Cursor position to 100 Xpos
  SetCursorX 100
  
; Display a text message at the current cursor's position.
  Print "Hello World"
  
; Set the Print Cursor position to 200 Xpos
  SetCursorX 200
  
; 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 the two lines of test something like this across your screen.

  
  Hello World
  Hello World
  

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


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