home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / ZINC_2.ZIP / RADIO.LIF / RADIO.HPP < prev   
Encoding:
C/C++ Source or Header  |  1991-05-13  |  838 b   |  50 lines

  1. //    RADIO.HPP - Definition of radio button and control.
  2. //    COPYRIGHT (C) 1991.  All Rights Reserved.
  3. //    Zinc Software Incorporated.  Pleasant Grove, Utah  USA
  4.  
  5. enum PORT
  6. {
  7.     PORT_LPT1,
  8.     PORT_LPT2,
  9.     PORT_COM1,
  10.     PORT_COM2,
  11.     PORT_OTHER
  12. };
  13. enum BAUD_RATE
  14. {
  15.     BAUD_1200,
  16.     BAUD_2400,
  17.     BAUD_9600
  18. };
  19. enum LINE
  20. {
  21.     LINE_ENABLED,
  22.     LINE_DISABLED
  23. };
  24.  
  25. class RADIO_BUTTON : public UI_WINDOW_OBJECT
  26. {
  27. public:
  28.     RADIO_BUTTON(int left, int top, int width, char *text, int value = 0,
  29.         USHORT woStatus = WOS_NO_STATUS);
  30.     int Event(const UI_EVENT &event);
  31.  
  32. private:
  33.     char *text;
  34.     int value;
  35. };
  36.  
  37. class RADIO_CONTROL : public UIW_WINDOW
  38. {
  39. public:
  40.     int selection;
  41.  
  42.     RADIO_CONTROL(int left, int top, int width, int height, char *title, USHORT woFlags);
  43.     int Event(const UI_EVENT &event);
  44.  
  45. private:
  46.     char *title;
  47. };
  48.  
  49.  
  50.