home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / fli106c / examples / mask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-25  |  3.5 KB  |  184 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.01
  4. // Copyright (C) 1990, 1991
  5. // Software Dimensions
  6. //
  7. // Dialog Development System
  8. //
  9.  
  10. //-------------------------------------------------------------------------
  11. //
  12. // Get the character or numeric mask
  13. //
  14. //-------------------------------------------------------------------------
  15.  
  16. class MaskDialog : public DialogClass
  17. {
  18. public:
  19.  
  20.   char ElementMask[50];
  21.   char VariableName[50];
  22.   char Prompter[50];
  23.   char HotKeyDefine[30];
  24.   char DerivedClass[50];
  25.   char HelpLine[65];
  26.  
  27.   int GroupingCode;
  28.   int HelpScreen;
  29.   int SetForLiving;
  30.  
  31.   int CharacterActive;
  32.  
  33.   char MaskCharacter[2];
  34.   int MaskWidth;
  35.   int ScrollWidth;
  36.  
  37.     MaskDialog(int=0,int=0,int=0);
  38.  
  39.     int EventHandler(int);
  40.   int GetMask();
  41. };
  42.  
  43. //-------------------------------------------------------------------------
  44. //
  45. // Get the check mark information
  46. //
  47. //-------------------------------------------------------------------------
  48.  
  49. class CheckDialog : public DialogClass
  50. {
  51. public:
  52.  
  53.   char CheckText[50];
  54.   char VariableName[50];
  55.   char HotKeyDefine[30];
  56.   char DerivedClass[50];
  57.   char HelpLine[65];
  58.  
  59.   int GroupingCode;
  60.   int HelpScreen;
  61.   int SetForLiving;
  62.  
  63.     CheckDialog(int=0,int=0,int=0);
  64.  
  65.     int EventHandler(int);
  66.   int GetCheck();
  67. };
  68.  
  69. //-------------------------------------------------------------------------
  70. //
  71. // Get the push button information
  72. //
  73. //-------------------------------------------------------------------------
  74.  
  75. class PushDialog : public DialogClass
  76. {
  77. public:
  78.  
  79.   char PushText[50];
  80.   char HotKeyDefine[30];
  81.   char Constant[50];
  82.   char DerivedClass[50];
  83.   char HelpLine[65];
  84.  
  85.   int GroupingCode;
  86.   int HelpScreen;
  87.   int SetForLiving;
  88.  
  89.     PushDialog(int=0,int=0,int=0);
  90.  
  91.     int EventHandler(int);
  92.   int GetPush();
  93. };
  94.  
  95. //-------------------------------------------------------------------------
  96. //
  97. // Get the group heading information
  98. //
  99. //-------------------------------------------------------------------------
  100.  
  101. class GroupDialog : public DialogClass
  102. {
  103. public:
  104.  
  105.   char GroupText[50];
  106.   char HotKeyDefine[30];
  107.  
  108.   int GroupingCode;
  109.  
  110.     GroupDialog(int=0);
  111.  
  112.     int EventHandler(int);
  113.   int GetGroup();
  114. };
  115.  
  116. //-------------------------------------------------------------------------
  117. //
  118. // Get the radio button information
  119. //
  120. // 2 classes - RadioDialog is for master dialog
  121. //             ButtonDialog is to get button headings
  122. //
  123. //-------------------------------------------------------------------------
  124.  
  125. class RadioDialog : public DialogClass
  126. {
  127. public:
  128.  
  129.   char VariableName[50];
  130.   char Prompter[50];
  131.   char HotKeyDefine[30];
  132.   char DerivedClass[50];
  133.   char HelpLine[65];
  134.   char RadioButtons[10][50];
  135.  
  136.   int GroupingCode;
  137.   int HelpScreen;
  138.   int SetForLiving;
  139.  
  140.   int Enabled;
  141.  
  142.     RadioDialog(int=0,int=0,int=0);
  143.  
  144.     int EventHandler(int);
  145.   int GetRadio();
  146. };
  147.  
  148. class ButtonDialog : public DialogClass
  149. {
  150. public:
  151.  
  152.   char RadioButtons[10][50];
  153.  
  154.     ButtonDialog();
  155.  
  156.     int EventHandler(int);
  157.   int GetButtons();
  158. };
  159.  
  160. //-------------------------------------------------------------------------
  161. //
  162. // Get the pick list information
  163. //
  164. //-------------------------------------------------------------------------
  165.  
  166. class PickDialog : public DialogClass
  167. {
  168. public:
  169.  
  170.   char Prompter[50];
  171.   char HotKeyDefine[30];
  172.   char DerivedClass[50];
  173.   char HelpLine[65];
  174.  
  175.   int HelpScreen;
  176.   int Width;
  177.   int Height;
  178.  
  179.     PickDialog(int=0,int=0,int=0);
  180.  
  181.     int EventHandler(int);
  182.   int GetPick();
  183. };
  184.