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

  1. /***************************************
  2. *  FIELD TAB BACKWARD 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_tab_backward( field, wreq )
  14.   struct Field *field;
  15.   struct IOStdReq *wreq;
  16. {
  17.   int jump;  /* jump size */
  18.  
  19.   if (field->BufferPos) {
  20.     if (field->BufferPos + 1 > TAB_JUMP)
  21.       jump = TAB_JUMP;
  22.     else
  23.       jump = field->BufferPos;
  24.     cursor_jump_left( wreq, jump );
  25.     field->BufferPos -= jump;
  26.   }
  27.   else
  28.     FLASH_SCREEN;
  29. }
  30.