home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 594b.lha / Precognition_rel1 / stringgadget.h < prev    next >
C/C++ Source or Header  |  1991-12-12  |  981b  |  42 lines

  1. /* ==========================================================================
  2. **
  3. **                   StringGadget.h
  4. **
  5. ** ©1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef STRINGGADGET_H
  11. #define STRINGGADGET_H
  12.  
  13.  
  14. #include "Valuator.h"
  15. #include "EmbossedGadget.h"
  16.  
  17.  
  18.  
  19. typedef EmbossedGadget StringGadget;
  20.  
  21.  
  22. void StringGadget_Init( StringGadget *gadget,
  23.                         PIXELS        LeftEdge,
  24.                         PIXELS        TopEdge,
  25.                         PIXELS        Width,
  26.                         USHORT        nChars,
  27.                         pcg_3DPens    Pens,
  28.                         char         *label );
  29.  
  30.  
  31. /*
  32. ** NOTE:  The methods 'Value()', and 'SetValue()' should be used
  33. ** to retrieve and set the values.  These take/return LONG values.
  34. **
  35. ** These macros cast them to (char*).
  36. */
  37.  
  38. #define StringValue(i)       (char*) Value(i)
  39. #define SetStringValue(i,s)  (char*) SetValue(i, (LONG)s)
  40.  
  41. #endif
  42.