home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / precog2_1.lha / Precognition2_1 / include / StringGadget.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-07  |  1.2 KB  |  49 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 __PARMS((
  23.                         StringGadget *gadget,
  24.                         PIXELS        LeftEdge,
  25.                         PIXELS        TopEdge,
  26.                         PIXELS        Width,
  27.                         USHORT        nChars,
  28.                         pcg_3DPens    Pens,
  29.                         char         *label
  30.                        ));
  31.  
  32. /* Additions for Builder Prototypes -- EDB */
  33.  
  34. struct ValuatorClass *StringGadgetClass __PARMS(( void ));
  35.  
  36. #if 0  /* moved to Valuator.h -- EDB */
  37. /*
  38. ** NOTE:  The methods 'Value()', and 'SetValue()' should be used
  39. ** to retrieve and set the values.  These take/return LONG values.
  40. **
  41. ** These macros cast them to (char*).
  42. */
  43.  
  44. #define StringValue(i)       (char*) Value(i)
  45. #define SetStringValue(i,s)  (char*) SetValue(i, (LONG)s)
  46.  
  47. #endif
  48. #endif
  49.