home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / utils / precognition / include / stringgadget.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-24  |  1.0 KB  |  46 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( 
  23.    #ifdef ANSI_HEADERS
  24.                         StringGadget *gadget,
  25.                         PIXELS        LeftEdge,
  26.                         PIXELS        TopEdge,
  27.                         PIXELS        Width,
  28.                         USHORT        nChars,
  29.                         pcg_3DPens    Pens,
  30.                         char         *label
  31.    #endif 
  32.                        );
  33.  
  34.  
  35. /*
  36. ** NOTE:  The methods 'Value()', and 'SetValue()' should be used
  37. ** to retrieve and set the values.  These take/return LONG values.
  38. **
  39. ** These macros cast them to (char*).
  40. */
  41.  
  42. #define StringValue(i)       (char*) Value(i)
  43. #define SetStringValue(i,s)  (char*) SetValue(i, (LONG)s)
  44.  
  45. #endif
  46.