home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / toolba.zip / TOOLBAR.H < prev    next >
Text File  |  1994-09-16  |  2KB  |  59 lines

  1. /************************************************************************
  2. * Toolbar.h - demonstration program for toolbar class                   *
  3. * --------------------------------------------------------------------- *
  4. * Demonstrate a toolbar class and simple graphical display.             *
  5. *                                                                       *
  6. * Written by: Barry Lay                                                 *
  7. * Date:       16 September 1994                                         *
  8. *                                                                       *
  9. ************************************************************************/
  10.  
  11. #define WND_MAIN        5000           // Main Window Id
  12. #define WND_BAR         5001
  13. #define WND_SIDE        5002
  14. #define WND_TEST        5003
  15. #define WND_TEXT        5004
  16. #define WND_CANVAS      5005
  17. #define WND_CLIENT      5006
  18.  
  19. /* Main application controls */
  20.  
  21. #define MI_SPEED        6100
  22. #define MI_HALF         6110
  23. #define MI_STOP         6120
  24. #define MI_GO           6130
  25. #define MI_TWICE        6140
  26.  
  27. #define MI_LINES        6200
  28. #define MI_LESS         6210
  29. #define MI_MORE         6220
  30.  
  31. #define MI_BACKGROUND   6300
  32. #define MI_BLACK        6310
  33. #define MI_WHITE        6320
  34.  
  35. /* various other constants */
  36.  
  37. #define DRAW_TIMEOUT    100UL          // one tenth second between draws
  38.  
  39. #define MICRO_DEFAULT   7001           // inactive text id
  40. #define MICRO_HELP_MSG  1              // message id of micro help
  41. #define MICRO_TIMEOUT   100UL          // one tenth of a second timeout
  42.  
  43. #define NUM_LINES       5              // five lines to start
  44. #define NUM_COLOURS     12             // twelve different line colours
  45.  
  46. /* Button bar bitmaps */
  47.  
  48. #define TBS_1           8101           // speed control buttons
  49. #define TBS_2           8102
  50. #define TBS_3           8103
  51. #define TBS_4           8104
  52.  
  53. #define TBL_1           8201           // line control buttons
  54. #define TBL_2           8202
  55.  
  56. #define TBB_1           8301           // background control buttons
  57. #define TBB_2           8302
  58.  
  59.