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/20 08:24] 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 =====
  
-==Parameters== +  * Row ([[USHORT]]) - input : New cursor row position, 0 is the top row. 
-;Row (USHORT) - input : New cursor row position, 0 is the top row. +  Column ([[USHORT]]) - input : New cursor column position, 0 is the leftmost column. 
-;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. 
-;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== 
- rc (USHORT) - return 
 Return code descriptions are: Return code descriptions are:
-* 0          NO_ERROR  
-* 355        ERROR_VIO_MODE  
-* 358        ERROR_VIO_ROW  
-* 359        ERROR_VIO_COL  
-* 436        ERROR_VIO_INVALID_HANDLE  
-* 465        ERROR_VIO_DETACHED 
  
-==Example Code== +  * 0          NO_ERROR  
-=== C Binding=== +  * 355        ERROR_VIO_MODE  
-<PRE>+  * 358        ERROR_VIO_ROW  
 +  * 359        ERROR_VIO_COL  
 +  * 436        ERROR_VIO_INVALID_HANDLE  
 +  * 465        ERROR_VIO_DETACHED 
 + 
 +===== Bindings ===== 
 + 
 + 
 +==== C Binding===
 + 
 +<code c>
 #define INCL_VIO #define INCL_VIO
  
Line 33: Line 42:
  
 USHORT           rc;            /* return code */ USHORT           rc;            /* return code */
-</PRE>+</code> 
 + 
 +====MASM Binding====
  
-===MASM Binding=== +<code asm>
-<PRE>+
 EXTRN  VioSetCurPos:FAR EXTRN  VioSetCurPos:FAR
 INCL_VIO            EQU 1 INCL_VIO            EQU 1
Line 46: Line 56:
  
 Returns WORD Returns WORD
-</PRE>+</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)]]