home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / EDSETCUR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1.1 KB  |  44 lines

  1. /**
  2. *
  3. * Name        EDSETCUR -- Set the cursor's size and position.
  4. *
  5. * Synopsis    error = edsetcur(pdata, off, pcursor, row, col);
  6. *
  7. *        int error      Returned error code.
  8. *        void *pdata      Unused; see below.
  9. *        int off       New state of cursor (0 = on, 1 = off).
  10. *        CUR_TYPE *pcursor Pointer to structure containing size
  11. *                  of cursor.
  12. *        int row,col      Row and column (relative to upper left
  13. *                  corner of screen) of new cursor
  14. *                  position.
  15. *
  16. * Description    The cursor is moved, and its size is set to the values
  17. *        in *pcursor.  The parameter pdata is never used; its
  18. *        inclusion in the calling sequence is to ensure calling
  19. *        sequence compatibility with WNRETINF.
  20. *
  21. * Returns    error          ED_NO_ERROR
  22. *
  23. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  24. *
  25. **/
  26. #include <bedit.h>
  27.  
  28. int edsetcur(pdata, off, pcursor, row, col)
  29. void     *pdata;
  30. int      off;
  31. CUR_TYPE *pcursor;
  32. int      row;
  33. int      col;
  34. {
  35.         /* Supress unused parameter compiler warnings.        */
  36.     ((char *) pdata)++;
  37.  
  38.     sccurset(row, col);
  39.  
  40.     scpgcur(off, pcursor->high, pcursor->low, CUR_ADJUST);
  41.  
  42.     return(ED_NO_ERROR);
  43. }
  44.