home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d4xx / d430 / smartfields.lha / SmartFields / Functions / field_cursor_right.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-11  |  567 b   |  25 lines

  1. /***************************************
  2. *  FIELD CURSOR RIGHT v1.11
  3. *  © Copyright 1988 Timm Martin
  4. *  All Rights Reserved
  5. ****************************************/
  6.  
  7. #include <exec/io.h>
  8. #include <exec/types.h>
  9. #include <console/console.h>
  10. #include <console/fields.h>
  11. #include <console/functions.h>
  12.  
  13. void field_cursor_right( field, wreq )
  14.   struct Field *field;
  15.   struct IOStdReq *wreq;
  16. {
  17.   if ((field->BufferPos + 2 < field->MaxChars) &&
  18.       (field->BufferPos < field->NumChars)) {
  19.     field->BufferPos++;
  20.     cursor_right( wreq );
  21.   }
  22.   else
  23.     FLASH_SCREEN;
  24. }
  25.