home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / S12442.ZIP / BUTTON.H < prev    next >
Text File  |  1989-07-31  |  998b  |  35 lines

  1. /* button.h RHS 7/15/89
  2.  *
  3.  * macros and typedefs for button.c
  4.  */
  5.  
  6.  
  7. #define    BTOGGLE    0x0001
  8. #define    BPRESS    0x0002
  9. #define    INPUT        0X0003
  10.  
  11. typedef    struct _button
  12.     {
  13.     char        *text;                                        /* text to be displayed        */
  14.     USHORT    startrow;                                    /* upper row                    */
  15.     USHORT    startcol;                                    /* left column                    */
  16.     USHORT    endrow;                                        /* lower row                    */
  17.     USHORT    endcol;                                        /* right column                */
  18.     BYTE        attribute;                                    /* color attribute            */
  19.     USHORT    type;                                            /* type of object                */
  20.     USHORT    left_button_val;                            /* mouse left button event    */
  21.     USHORT    right_button_val;                            /* mouse right button event*/
  22.     USHORT    accelerator;                                /* keyboard event                */
  23.     USHORT    state;                                        /* button state: on or off    */
  24.     } BUTTON;
  25.  
  26.  
  27. void InitButtons(void);
  28. void ButtonInit(BUTTON *b);
  29. void ResetButtons(void);
  30. void findbutton(char *text,BUTTON **bptr);
  31. void DisplayButtons(void);
  32. void ButtonPaint(BUTTON *b, BYTE attribute);
  33. void ButtonDisplay(BUTTON *b);
  34.  
  35.