home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / PULLDOWN.H < prev    next >
Text File  |  1995-12-11  |  8KB  |  147 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   pulldown.h                                                              */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*                                                                           */
  7. /*  Structures of pulldowns, dialogs and popups along with related constants */
  8. /* are defined here.                                                         */
  9. /*                                                                           */
  10. /*...Release 1.01 (04/03/92)                                                 */
  11. /*...                                                                        */
  12. /*... 05/08/92  701   Srinivas  Cua Interface.                               */
  13. /*... 12/10/93  910   Joe   Clear fields on cursor sensitive prompting.      */
  14. /*****************************************************************************/
  15.  
  16. /*****************************************************************************/
  17. /* Graphic box characters.                                                   */
  18. /*****************************************************************************/
  19. #define  H_BAR       0xC4
  20. #define  HH_BAR      0xCD
  21. #define  V_BAR       0xB3
  22. #define  VV_BAR      0xBA
  23. #define  TR_CORNER  0xBF
  24. #define  BR_CORNER  0xD9
  25. #define  TL_CORNER  0xDA
  26. #define  BL_CORNER  0xC0
  27. #define  TR_CCORNER  0xBB
  28. #define  BR_CCORNER  0xBC
  29. #define  TL_CCORNER  0xC9
  30. #define  BL_CCORNER  0xC8
  31. #define  B_JUNCTION 0xC1
  32. #define  L_JUNCTION 0xC3
  33. #define  R_JUNCTION 0xB4
  34. #define  UPARROW    0x18
  35. #define  DNARROW    0x19
  36. #define  SHADELIGHT 0xB0
  37. #define  SHADEDARK  0xB1
  38.  
  39. #define  R_ARROW        0x10
  40. #define  U_ARROW        0x18
  41. #define  D_ARROW        0x19
  42. #define  BULLET         0x07
  43.  
  44. /*****************************************************************************/
  45. /* Button Structure.                                                         */
  46. /*****************************************************************************/
  47. typedef struct button_st
  48. {
  49.   uint   row;                           /* row position of button.           */
  50.   uint   col;                           /* column position of button.        */
  51.   uint   length;                        /* length of button.                 */
  52.   uchar  *Name;                         /* button text.                      */
  53.   uint   Key;                           /* Key code associated with button.  */
  54. } BUTTON;
  55.  
  56. typedef struct cascade
  57. {
  58.   int  PulldownIndex;
  59.   UINT Flag;                            /* Index in the pulldown array.      */
  60. } CAS_PULLDOWN;                         /* Flag for the status of choices.   */
  61.  
  62. /*****************************************************************************/
  63. /* Pull down window structure.                                               */
  64. /*****************************************************************************/
  65. typedef struct pulld
  66. {
  67.    uint          row;                   /* row to start pulldown             */
  68.    uint          col;                   /* column to start pulldown          */
  69.    uint          width;                 /* width of pulldown box             */
  70.    uint          entries;               /* # of entries in pulldown          */
  71.    UINT          BitMask;               /* bit mask of entries not available */
  72.    uchar         *labels;               /* list of labels concat together    */
  73.    uchar         *hotkeys;              /* list of single char selections    */
  74.    uchar         *SelPos;               /* Single char postions in selection */
  75.    ULONG         *help;                 /* list of help screens              */
  76.    uchar         *funccodes;            /* function codes for each selection */
  77.    STRING        *AccelKeys;            /* Names of Accel Keys.              */
  78.    uint          separators;            /* bit mask of separators in pulldown*/
  79.    CAS_PULLDOWN  *CasPulldown;          /* Pointer to cascaded pulldown.     */
  80.    uchar         *SaveArea;             /* -> screen save area.              */
  81. } PULLDOWN;
  82.  
  83. /*****************************************************************************/
  84. /* pop up shell structure.                                                   */
  85. /*****************************************************************************/
  86. typedef struct pop_st
  87. {
  88.    uint    row;                         /* row to start popup                */
  89.    uint    col;                         /* cloumn to start popup             */
  90.    uint    length;                      /* length of popup                   */
  91.    uint    width;                       /* width of popup                    */
  92.    uint    NoOfButtons;                 /* no of buttons.                    */
  93.    char   *title;                       /* specific title of the popup win.  */
  94.    char   *instructions;                /* specific instructions for popup.  */
  95.    ULONG   help;                        /* context sensitive help id.        */
  96.    BUTTON *Buttons;                     /* -> to buttons                     */
  97.    uint    Flags;                       /* popup flags.                   910*/
  98. } POPUPSHELL;
  99.  
  100. /*****************************************************************************/
  101. /* pop up window choice structure.                                           */
  102. /*****************************************************************************/
  103. typedef struct pop_ch
  104. {
  105.    uint   entries;                      /* number of entries                 */
  106.    uint   disabled;                     /* bit mask of choices not available */
  107.    uchar *labels;                       /* list of choice strings            */
  108.    uchar *hotkeys;                      /* list of single char selections    */
  109.    uchar *SelPos;                       /* Single char postions in selection */
  110.    ULONG *help;                         /* list of help screen numbers       */
  111. } POPUPCHOICE;
  112.  
  113. /*****************************************************************************/
  114. /* Dialog window choice structure.                                           */
  115. /*****************************************************************************/
  116. typedef struct Dialog_ch
  117. {
  118.   uint   entries;                       /* number of entries                 */
  119.   uint   MaxRows;                       /* maximum no of rows.               */
  120.   int    SkipRows;                      /* number of rows to skip.           */
  121.   uchar *labels;                        /* list of choice strings            */
  122.   uint   SliderStartRow;
  123.   uint   NewSliderStartRow;
  124.   uint   SliderSize;
  125. } DIALOGCHOICE;
  126.  
  127. /*****************************************************************************/
  128. /* Dialog shell structure.                                                   */
  129. /*****************************************************************************/
  130. typedef struct Dialog_st
  131. {
  132.    uint    row;                         /* row to start popup                */
  133.    uint    col;                         /* column to start popup             */
  134.    uint    length;                      /* length of popup                   */
  135.    uint    width;                       /* width of popup                    */
  136.    uint    NoOfButtons;                 /* no of buttons.                    */
  137.    uint    NoOfButtonRows;              /* no of rows buttons occupy.        */
  138.    uchar  *title;                       /* popup title                       */
  139.    uint    SkipLines;                   /* No of lines to skip at the top.   */
  140.    BUTTON *Buttons;                     /* -> to buttons                     */
  141.    void   (*Display)( struct Dialog_st *, struct Dialog_ch * );
  142.    uint   (*DialogFunction)( struct Dialog_st *, struct Dialog_ch *, EVENT *,
  143.                              void * );
  144.    uchar  *SaveArea;                    /* -> screen save area.              */
  145.    uint   CurrentField;
  146. } DIALOGSHELL;
  147.