home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / DEMO / RIM22 / MACROS / MENU.H < prev    next >
Text File  |  1993-12-08  |  7KB  |  220 lines

  1. /* 
  2. ** Macro header: menu.h
  3. **
  4. ** Copyright (C) 1993 Brian L. Smith
  5. ** Copyright (C) 1993 RimStar Technology, Inc.
  6. ** All rights reserved internationally.
  7. ** Unlicensed use is a violation of applicable laws.
  8. **
  9. ** This source code is provided to licensed users of RimStar's products
  10. ** for the purpose of allowing the user to customize and/or enhance RimStar's
  11. ** products. The source code remains the property of the copyright holders
  12. ** with all rights reserved internationally.
  13. ** Any modifications to the source code are considered derivative works and
  14. ** all rights thereto are reserved to the copyright holders except
  15. ** that the purchaser may use the derivitive work in the same manner
  16. ** as permitted by the license governing the unmodified product.
  17. ** Distribution in any manner of any part of the original source code,
  18. ** whether in source or object form, is expressly prohibited without the
  19. ** express written permission of the copyright holders.
  20. **
  21. */
  22.  
  23. #ifdef INCL_MENU
  24.  #ifndef MENU_H_INCLUDED 
  25.     #define MENU_H_INCLUDED
  26.  
  27.     #define MIT_END                    (-1)
  28.     #define MIT_NONE                    (-1)
  29.     #define MIT_MEMERROR                (-1)
  30.     #define MIT_ERROR                    (-1)
  31.     #define MIT_FIRST                    (-2)
  32.     #define MIT_LAST                    (-3)
  33.     #define MID_NONE                    MIT_NONE
  34.     #define MID_ERROR                    (-1)
  35.     
  36.     #define MIS_TEXT                    0x0001
  37.     #define MIS_BITMAP                0x0002
  38.     #define MIS_SEPARATOR            0x0004
  39.     #define MIS_OWNERDRAW            0x0008
  40.     #define MIS_SUBMENU                0x0010
  41.     #define MIS_MULTMENU                0x0020
  42.     #define MIS_SYSCOMMAND            0x0040
  43.     #define MIS_HELP                    0x0080
  44.     #define MIS_STATIC                0x0100
  45.     #define MIS_BUTTONSEPARATOR    0x0200
  46.     #define MIS_BREAK                    0x0400
  47.     #define MIS_BREAKSEPARATOR        0x0800
  48.     #define MIS_GROUP                    0x1000
  49.     #define MIS_SINGLE                0x2000
  50.     #define MIA_NODISMISS            0x0020
  51.     #define MIA_FRAMED                0x1000
  52.     #define MIA_CHECKED                0x2000
  53.     #define MIA_DISABLED                0x4000
  54.     #define MIA_HILITED                0x8000
  55.  
  56.     #define SC_SIZE                    0x8000
  57.     #define SC_MOVE                    0x8001
  58.     #define SC_MINIMIZE                0x8002
  59.     #define SC_MAXIMIZE                0x8003
  60.     #define SC_CLOSE                    0x8004
  61.     #define SC_NEXT                    0x8005
  62.     #define SC_APPMENU                0x8006
  63.     #define SC_SYSMENU                0x8007
  64.     #define SC_RESTORE                0x8008
  65.     #define SC_NEXTFRAME                0x8009
  66.     #define SC_NEXTWINDOW            0x8010
  67.     #define SC_TASKMANAGER            0x8011
  68.     #define SC_HELPKEYS                0x8012
  69.     #define SC_HELPINDEX                0x8013
  70.     #define SC_HELPEXTENDED            0x8014
  71.     #define SC_SWITCHPANELIDS        0x8015
  72.     #define SC_DBE_FIRST                0x8018
  73.     #define SC_DBE_LAST                0x801F
  74.     #define SC_BEGINDRAG                0x8020
  75.     #define SC_ENDDRAG                0x8021
  76.     #define SC_SELECT                    0x8022
  77.     #define SC_OPEN                    0x8023
  78.     #define SC_CONTEXTMENU            0x8024
  79.     #define SC_CONTEXTHELP            0x8025
  80.     #define SC_TEXTEDIT                0x8026
  81.     #define SC_BEGINSELECT            0x8027
  82.     #define SC_ENDSELECT                0x8028
  83.     #define SC_WINDOW                    0x8029
  84.     #define SC_HIDE                    0x802a
  85.  
  86.     /****** Menu command IDs *****/
  87.  
  88.     #define SC_DOCSYSMENU            0x0011
  89.  
  90.     #define SCC_SIZE                    9900
  91.     #define SCC_MOVE                    9901
  92.     #define SCC_MINIMIZE                9902
  93.     #define SCC_MAXIMIZE                9903
  94.     #define SCC_CLOSE                    9904
  95.     #define SCC_NEXT                    9905
  96.     #define SCC_APPMENU                9906
  97.     #define SCC_SYSMENU                9907
  98.     #define SCC_RESTORE                9908
  99.     #define SCC_NEXTFRAME            9909
  100.     #define SCC_NEXTWINDOW            9910
  101.  
  102.         /* Action Bar Entries */
  103.     #define IDM_FILE                    1100
  104.     #define IDM_EDIT                    1200
  105.     #define IDM_SEARCH                1300
  106.     #define IDM_BROWSE                1400
  107.     #define IDM_BUFFER                1500
  108.     #define IDM_WINDOW                1600
  109.     #define IDM_KEYS                    1700
  110.     #define IDM_CONFIGURE            1800
  111.     #define IDM_HELP                    1900
  112.     #define IDM_FIRSTACTION            IDM_FILE
  113.     #define IDM_LASTACTION            IDM_HELP
  114.  
  115.         /* File pulldown */
  116.     #define IDM_NEW                        1101
  117.     #define IDM_OPEN                        1102
  118.     #define IDM_CLOSE                        1103
  119.     #define IDM_SAVE                        1104
  120.     #define IDM_SAVEAS                    1105
  121.     #define IDM_PRINTER_SETUP            1106
  122.     #define IDM_PRINT                        1107
  123.     #define IDM_LOAD_MACROFILE            1108
  124.     #define IDM_EXIT                        1109
  125.     #define IDM_FILE_LAST                IDM_EXIT
  126.  
  127.         /* Edit pulldown */
  128.     #define IDM_UNDO                        1201
  129.     #define IDM_REDO                        1202
  130.     #define IDM_CUT                        1203
  131.     #define IDM_COPY                        1204
  132.     #define IDM_PASTE                        1205
  133.     #define IDM_DELETE                    1206
  134.     #define IDM_INSERTFILE                1207
  135.     #define IDM_IMPORTCLIP                1208
  136.     #define IDM_EXPORTCLIP                1209
  137.     #define IDM_INDENT                    1210
  138.     #define IDM_OUTDENT                    1211
  139.     #define IDM_EDIT_LAST                IDM_OUTDENT
  140.  
  141.         /* Search pulldown */
  142.     #define IDM_SEARCH_FORWARD            1301
  143.     #define IDM_SEARCH_BACKWARD        1302
  144.     #define IDM_SEARCH_AGAIN            1303
  145.     #define IDM_REPLACE_FORWARD        1304
  146.     #define IDM_REPLACE_BACKWARD        1305
  147.     #define IDM_REPLACE_AGAIN            1306
  148.     #define IDM_SEARCH_NEXTERR            1307
  149.     #define IDM_SEARCH_PREVERR            1308
  150.     #define IDM_SEARCH_LAST                IDM_SEARCH_PREVERR
  151.  
  152.         /* Browse pulldown */
  153.     #define IDM_SB_GOTODEF                1401
  154.     #define IDM_SB_SYMBOL                1402
  155.     #define IDM_SB_DEF                    1403
  156.     #define IDM_SB_REF                    1404
  157.     #define IDM_SB_MOD                    1405
  158.     #define IDM_SB_LOAD                    1406
  159.     #define IDM_SB_CLEAR                    1407
  160.     #define IDM_SB_NEXT                    1408
  161.     #define IDM_SB_PREV                    1409
  162.     #define IDM_SB_LAST                    IDM_SB_PREV
  163.  
  164.         /* Buffer pulldown */
  165.     #define IDM_BUFFER_NEXT                1501
  166.     #define IDM_BUFFER_PREV                1502
  167.     #define IDM_BUFFER_EXECUTE              1503
  168.     #define IDM_BUFFER_CLOSE            1504
  169.     #define IDM_BUFFER_LIST                1505
  170.     #define IDM_BUFFER_LAST                IDM_BUFFER_LIST
  171.     #define IDM_START_BUFFER_LIST        8000
  172.  
  173.         /* Window pulldown */
  174.     #define IDM_WINDOW_CASCADE            1601
  175.     #define IDM_WINDOW_TILE_WIDE        1602
  176.     #define IDM_WINDOW_TILE_TALL        1603
  177.     #define IDM_WINDOW_KEEP_CASCADED    1604
  178.     #define IDM_WINDOW_KEEP_TILED        1605
  179.     #define IDM_WINDOW_NEXT                1606
  180.     #define IDM_WINDOW_PREV                1607
  181.     #define IDM_WINDOW_CREATE             1608
  182.     #define IDM_WINDOW_DELETE             1609
  183.     #define IDM_WINDOW_LAST                IDM_WINDOW_DELETE
  184.     #define IDM_START_WINDOW_LIST        9000
  185.  
  186.         /* Keys Pulldown */
  187.     #define IDM_KEYS_PLAY             1701
  188.     #define IDM_KEYS_RECORD           1702
  189.     #define IDM_KEYS_SAVEKBDMACRO     1703
  190.     #define IDM_KEYS_LOADKBDMACRO     1704
  191.     #define IDM_KEYS_LAST                 IDM_KEYS_LOADKBDMACRO
  192.  
  193.         /* Options pulldown */
  194.     #define IDM_CONFIG                    1801
  195.     #define IDM_CONFIGFONT                1802
  196.     #define IDM_CONFIGCOLORS            1803
  197.     #define IDM_CONFIGCURSOR            1804
  198.     #define IDM_CONFIGASSOC                1805
  199.     #define IDM_CONFIG_LAST                IDM_CONFIGASSOC
  200.  
  201.         /* Help pulldown */
  202.   #if WINDOWS
  203.     #define IDM_HELP_CONTENTS            1901
  204.     #define IDM_HELP_SEARCH                1902
  205.     #define IDM_HELP_FOR_HELP            1903
  206.     #define IDM_ABOUT                        1904
  207.   #else
  208.     #define IDM_HELP_FOR_HELP            1901
  209.     #define IDM_ABOUT                        1902
  210.   #endif
  211.     #define IDM_HELP_LAST                IDM_ABOUT
  212.  
  213.  #endif
  214. #endif /* INCL_MENU */
  215.  
  216.  
  217. /*
  218. ** End header: menu.h
  219. */
  220.