en:docs:fapi:viosetcurpos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:docs:fapi:viosetcurpos [2021/08/27 12:02] prokusheven:docs:fapi:viosetcurpos [2021/09/19 04:06] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +====== VioSetCurPos ====== 
 + 
 This call sets the cursor's coordinates on the screen. This call sets the cursor's coordinates on the screen.
  
-==Syntax== +===== Syntax ===== 
- VioSetCurPos (Row, Column, VioHandle)+<code c> 
 +VioSetCurPos (Row, Column, VioHandle) 
 +</code> 
 +===== Parameters ===== 
 + 
 +  * Row ([[USHORT]]) - input : New cursor row position, 0 is the top row. 
 +  * Column ([[USHORT]]) - input : New cursor column position, 0 is the leftmost column. 
 +  * VioHandle ([[HVIO]]) - input : This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs. 
 + 
 +===== Return Code =====
  
-==Parameters== +rc ([[USHORT]]) - return
-;Row (USHORT) - input : New cursor row position, 0 is the top row. +
-;Column (USHORT) - input : New cursor column position, 0 is the leftmost column. +
-;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs.+
  
-==Return Code== 
- rc (USHORT) - return 
 Return code descriptions are: Return code descriptions are:
 +
   * 0          NO_ERROR    * 0          NO_ERROR 
   * 355        ERROR_VIO_MODE    * 355        ERROR_VIO_MODE 
Line 21: Line 27:
   * 465        ERROR_VIO_DETACHED   * 465        ERROR_VIO_DETACHED
  
-==Example Code== +===== Bindings ===== 
-=== C Binding===+ 
 + 
 +==== C Binding===
 <code c> <code c>
 #define INCL_VIO #define INCL_VIO
Line 33: Line 42:
  
 USHORT           rc;            /* return code */ USHORT           rc;            /* return code */
-</code c>+</code> 
 + 
 +====MASM Binding====
  
-===MASM Binding=== 
 <code asm> <code asm>
 EXTRN  VioSetCurPos:FAR EXTRN  VioSetCurPos:FAR
Line 46: Line 56:
  
 Returns WORD Returns WORD
-</code asm>+</code>
  
  
  
-====== Note ======+===== Note =====
  
 Text based on [[http://www.edm2.com/index.php/VioSetCurPos_(FAPI)]] Text based on [[http://www.edm2.com/index.php/VioSetCurPos_(FAPI)]]