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

  1. /***************************************
  2. *  FIELD DISABLE v1.01
  3. *  © Copyright 1988 Timm Martin
  4. *  All Rights Reserved
  5. ****************************************/
  6.  
  7. #include <console/fields.h>
  8. #include <console/functions.h>
  9.  
  10. void field_disable( header, field )
  11.   struct FieldHeader *header;
  12.   struct Field *field;
  13. {
  14.   if (field == header->CurrentField) {
  15.     header->CurrentField = NULL;
  16.     cursor_invisible( header->WriteReq );
  17.   }
  18.   field->Enabled = FIELD_DISABLED;
  19. }
  20.