home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ibmtool.zip / intrface.h < prev    next >
Text File  |  1997-11-07  |  2KB  |  73 lines

  1. #define MAXCOL              79
  2. #define MAXROW              24
  3. #define MAXSTRING          256
  4. #define MAXCMDS             25
  5. #define MAXMSGS            100
  6. #define MAXMSG              80
  7. #define MAXCMDLEN           20
  8.  
  9. /* Key Definitions */
  10. #define UP                0x48
  11. #define DOWN              0x50
  12. #define RIGHT             0x4D
  13. #define LEFT              0x4B
  14. #define PGUP              0x49
  15. #define PGDN              0x51
  16. #define HOME              0x47
  17. #define END               0x4F
  18. #define INSERT            0x52
  19. #define DELETE            0x53
  20. #define BACKSPACE         0x0E
  21. #define ESC               0x01
  22. #define ENTER             0x1C
  23. #define TAB               0x0F
  24. #define F1                0x3B
  25. #define F2                0x3C
  26. #define F3                0x3D
  27. #define F4                0x3E
  28. #define F5                0x3F
  29. #define F6                0x40
  30. #define F7                0x41
  31. #define F8                0x42
  32. #define F9                0x43
  33. #define F10               0x44
  34. #define INSERT_STATE    0x0080
  35. #define ALT_KEY         0x0008
  36. #define CTL_KEY         0x0004
  37.  
  38. typedef struct _MENU {
  39.   char      Option[MAXSTRING];
  40.   USHORT    Col;
  41.   char      SelKey;
  42.   char      SelChar;
  43.   USHORT    SelCol;
  44.   int       (* Func) (void);
  45. } MENU;
  46.  
  47. typedef struct _MESSAGE {
  48.   char    Msg[MAXMSG];
  49.   BYTE    MsgAttr;
  50.   struct _MESSAGE *next, *prev;
  51. } MESSAGE;
  52.  
  53. typedef struct _COMMAND {
  54.   char   Command[MAXCMDLEN];
  55.   int    (* CmdFunc) (void);
  56. } COMMAND;
  57.  
  58. /* GLOBAL VARIABLES */
  59. char    HelpCmd[MAXCMDLEN];
  60.  
  61. int     LastMenuOpt,
  62.         PrevMenuOpt;
  63.  
  64. BOOLEAN CmdFromHelp,
  65.         HelpMode;
  66.  
  67. MENU    MenuBar[];
  68.  
  69. WINDOW  CmdLine,
  70.         Info,
  71.         Msg;
  72.  
  73.