'============================================================================
' MapInfo version 10.5 - Menu Item Definitions
'----------------------------------------------------------------------------
' This file contains defines useful when programming in the MapBasic
' language.  The definitions in this file describe the standard MapInfo
' functionality available via the "Run Menu Command" MapBasic statement.
'----------------------------------------------------------------------------
' The defines in this file are organized to match the sequence of
' declarations in the MAPINFOW.MNU file, which in turn reflects the
' organization of the MapInfo menus and buttonpads.
'============================================================================

'----------------------------------------------------------------------------
' File menu
'----------------------------------------------------------------------------
Define M_FILE_NEW                              101
Define M_FILE_OPEN                             102
Define M_FILE_OPEN_WMS                         118
Define M_FILE_OPEN_WFS                         119
Define M_FILE_OPEN_ODBC_CONN                   125
Define M_FILE_OPEN_UNIVERSAL_DATA              126
Define M_FILE_OPEN_BING_AERIAL                 128
Define M_FILE_OPEN_BING_HYBRID                 129
Define M_FILE_CLOSE                            103
Define M_FILE_CLOSE_ALL                        104
Define M_FILE_CLOSE_ODBC                       124
Define M_FILE_SAVE                             105
Define M_FILE_SAVE_COPY_AS                     106
Define M_FILE_SAVE_QUERY                       117
Define M_FILE_SAVE_WORKSPACE                   109
Define M_FILE_SAVE_WINDOW_AS                   609
Define M_FILE_REVERT                           107
Define M_FILE_PAGE_SETUP                       111
Define M_FILE_PRINT                            112
Define M_FILE_PRINT_TO_PDF                     127
Define M_FILE_EXIT                             113

'----------------------------------------------------------------------------
' Edit menu
'----------------------------------------------------------------------------
Define M_EDIT_UNDO                             201
Define M_EDIT_CUT                              202
Define M_EDIT_COPY                             203
Define M_EDIT_PASTE                            204
Define M_EDIT_CLEAR                            205
Define M_EDIT_CLEAROBJ                         206
Define M_EDIT_RESHAPE                          1601
Define M_EDIT_NEW_ROW                          702
Define M_EDIT_GETINFO                          207

'----------------------------------------------------------------------------
' Tools menu
'----------------------------------------------------------------------------
Define M_TOOLS_CRYSTAL_REPORTS_NEW             1802
Define M_TOOLS_CRYSTAL_REPORTS_OPEN            1803
Define M_TOOLS_RUN                             110
Define M_TOOLS_TOOL_MANAGER                    1801

'----------------------------------------------------------------------------
' Objects menu
'----------------------------------------------------------------------------
Define M_OBJECTS_SET_TARGET                    1610
Define M_OBJECTS_CLEAR_TARGET                  1611
Define M_OBJECTS_COMBINE                       1605
Define M_OBJECTS_DISAGG                        1621
Define M_OBJECTS_BUFFER                        1606
Define M_OBJECTS_CONVEX_HULL                   1616
Define M_OBJECTS_ENCLOSE                       1617
Define M_OBJECTS_VORONOI                       1622
Define M_OBJECTS_DRIVE_REGION                  1627
Define M_OBJECTS_SPLIT                         1612
Define M_OBJECTS_ERASE                         1613
Define M_OBJECTS_ERASE_OUT                     1614
Define M_OBJECTS_POLYLINE_SPLIT                1623
Define M_OBJECTS_POLYLINE_SPLIT_AT_NODE        1626
Define M_OBJECTS_OVERLAY                       1615
Define M_OBJECTS_CHECK_REGIONS                 1618
Define M_OBJECTS_CLEAN                         1619
Define M_OBJECTS_SNAP                          1620
Define M_OBJECTS_OFFSET                        1624
Define M_OBJECTS_ROTATE                        1625
Define M_OBJECTS_SMOOTH                        1602
Define M_OBJECTS_UNSMOOTH                      1603
Define M_OBJECTS_CVT_PGON                      1607
Define M_OBJECTS_CVT_PLINE                     1604

'----------------------------------------------------------------------------
' Query menu
'----------------------------------------------------------------------------
Define M_QUERY_SELECT                          301
Define M_QUERY_SQLQUERY                        302
Define M_QUERY_SELECTALL                       303
Define M_QUERY_INVERTSELECT                    311
Define M_QUERY_UNSELECT                        304
Define M_QUERY_FIND                            305
Define M_QUERY_FIND_SELECTION_CURRENT_MAP      312
Define M_QUERY_FIND_SELECTION                  306
Define M_QUERY_FIND_ADDRESS                    313
Define M_QUERY_CALC_STATISTICS                 309

'----------------------------------------------------------------------------
' Table, Maintenance, and Raster menus
'----------------------------------------------------------------------------
Define M_TABLE_UPDATE_COLUMN                   405
Define M_TABLE_APPEND                          411
Define M_TABLE_GEOCODE                         407
Define M_TABLE_WEB_GEOCODE                     424
Define M_TABLE_CREATE_POINTS                   408
Define M_TABLE_MERGE_USING_COLUMN              406
Define M_TABLE_BUFFER                          419
Define M_TABLE_VORONOI                         420
Define M_TABLE_DRIVE_REGION                    425
Define M_TABLE_IMPORT                          401
Define M_TABLE_EXPORT                          402

Define M_TABLE_MODIFY_STRUCTURE                404
Define M_TABLE_DELETE                          409
Define M_TABLE_RENAME                          410
Define M_TABLE_PACK                            403
Define M_TABLE_MAKEMAPPABLE                    415
Define M_TABLE_CHANGESYMBOL                    418
Define M_TABLE_UNLINK                          416
Define M_TABLE_REFRESH                         417

Define M_ORACLE_CREATE_WORKSPACE               1804
Define M_ORACLE_DELETE_WORKSPACE               1805
Define M_ORACLE_VERSION_ENABLE_ON              1806
Define M_ORACLE_VERSION_ENABLE_OFF             1807
Define M_ORACLE_MERGE_PARENT                   1808
Define M_ORACLE_REFRESH_FROM_PARENT            1809

Define M_TABLE_RASTER_STYLE                    414
Define M_TABLE_RASTER_REG                      413
Define M_TOOLS_RASTER_REG                      1730

Define M_TABLE_WMS_PROPS                       421
Define M_TABLE_WFS_REFRESH                     422
Define M_TABLE_WFS_PROPS                       423
Define M_TABLE_UNIVERSAL_DATA_REFRESH          426


'----------------------------------------------------------------------------
' Options and Preferences menus
'----------------------------------------------------------------------------
Define M_FORMAT_PICK_LINE                      501
Define M_FORMAT_PICK_FILL                      502
Define M_FORMAT_PICK_SYMBOL                    503
Define M_FORMAT_PICK_FONT                      504
Define M_WINDOW_BUTTONPAD                      605
Define M_WINDOW_LEGEND                         606
Define M_WINDOW_STATISTICS                     607
Define M_WINDOW_MAPBASIC                       608
Define M_WINDOW_STATUSBAR                      616
Define M_FORMAT_CUSTOM_COLORS                  617
Define M_EDIT_PREFERENCES                      208

Define M_EDIT_PREFERENCES_SYSTEM               210
Define M_EDIT_PREFERENCES_MAP                  212
Define M_EDIT_PREFERENCES_LEGEND               215
Define M_EDIT_PREFERENCES_FILE                 211
Define M_EDIT_PREFERENCES_COUNTRY              213
Define M_EDIT_PREFERENCES_PATH                 214
Define M_EDIT_PREFERENCES_OUTPUT               216
Define M_EDIT_PREFERENCES_PRINTER              217
Define M_EDIT_PREFERENCES_STYLES               218
Define M_EDIT_PREFERENCES_IMAGE_PROC           219
Define M_EDIT_PREFERENCES_WEBSERVICES          220
Define M_EDIT_PREFERENCES_LAYOUT               221

'----------------------------------------------------------------------------
' Window menu
'----------------------------------------------------------------------------
Define M_WINDOW_BROWSE                         601
Define M_WINDOW_MAP                            602
Define M_WINDOW_GRAPH                          603
Define M_WINDOW_LAYOUT                         604
Define M_WINDOW_REDISTRICT                     615
Define M_WINDOW_REDRAW                         610
Define M_WINDOW_TILE                           611
Define M_WINDOW_CASCADE                        612
Define M_WINDOW_ARRANGEICONS                   613
Define M_WINDOW_MORE                           614
Define M_WINDOW_FIRST                          620
' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
' Note: the 2nd through 80th windows can be accessed as (M_WINDOW_FIRST+i-1)
' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

'----------------------------------------------------------------------------
' Help menu
'----------------------------------------------------------------------------
Define M_HELP_CONTEXTSENSITIVE                 1201
Define M_HELP_CONTENTS                         1202

Define M_HELP_SEARCH                           1203
Define M_HELP_MAPINFO_3DGRAPH_HELP             1214
Define M_HELP_MAPINFO_WWW                      1210
Define M_HELP_MAPINFO_CONNECT_SERVICES         1215
Define M_HELP_MAPINFO_WWW_TUTORIAL             1213
Define M_HELP_MAPINFO_WWW_STORE                1211
Define M_HELP_CONNECT_MIFORUM                  1209
Define M_HELP_CHECK_FOR_UPDATE                 1212
Define M_HELP_MAPINFO_PRODUCT_FEEDBACK         1219

Define M_HELP_MAPINFO_RETURN_LICENSE           1216
Define M_HELP_MAPINFO_BORROW_LICENSE           1217
Define M_HELP_MAPINFO_RETURN_BORROWED_LICENSE  1218

Define M_HELP_ABOUT                            1205

Define M_HELP_USE_HELP                         1204
Define M_HELP_HELPMODE                         1206
Define M_HELP_TECHSUPPORT                      1208



'----------------------------------------------------------------------------
' Browse menu
'----------------------------------------------------------------------------
Define M_BROWSE_PICK_FIELDS                    704
Define M_BROWSE_OPTIONS                        703

'----------------------------------------------------------------------------
' Map menu
'----------------------------------------------------------------------------
' Open Layer Control in a window: 
Define M_MAP_LAYER_CONTROL                     822
' Open Layer Control in a dialog box: 
Define M_MAP_LAYER_CONTROL_DIALOG              801
Define M_MAP_CREATE_3DMAP                      817
Define M_MAP_CREATE_PRISMMAP                   818
Define M_MAP_THEMATIC                          307
Define M_MAP_MODIFY_THEMATIC                   308
Define M_MAP_CREATE_LEGEND                     816
Define M_MAP_CREATE_SCALEBAR                   824
Define M_MAP_CHANGE_VIEW                       805
Define M_MAP_CLONE_MAPPER                      811
Define M_MAP_PREVIOUS                          806
Define M_MAP_ENTIRE_LAYER                      807
Define M_MAP_CLEAR_CUSTOM_LABELS               814
Define M_MAP_SAVE_COSMETIC                     809
Define M_MAP_CLEAR_COSMETIC                    810
Define M_MAP_SET_CLIP_REGION                   812
Define M_MAP_CLIP_REGION_ONOFF                 813
Define M_MAP_SETUPDIGITIZER                    803
Define M_MAP_OPTIONS                           802

' Map window context menu
Define M_MAP_AUTOSCROLL_ONOFF                  815
Define M_MAP_VIEW_ENTIRE_SELECTION             819
Define M_MAP_SELECT_ALL_FROM_SELECTION         820
Define M_MAP_MAKE_SELECTION_EDITABLE           821


'----------------------------------------------------------------------------
' Layout menu
'----------------------------------------------------------------------------
Define M_LAYOUT_CHANGE_VIEW                    902
Define M_LAYOUT_ACTUAL                         903
Define M_LAYOUT_ENTIRE                         904
Define M_LAYOUT_PREVIOUS                       905
Define M_LAYOUT_BRING2FRONT                    906
Define M_LAYOUT_SEND2BACK                      907
Define M_LAYOUT_ALIGN                          908
Define M_LAYOUT_DROPSHADOWS                    909
Define M_LAYOUT_DISPLAYOPTIONS                 901
Define M_LAYOUT_AUTOSCROLL_ONOFF               910

'----------------------------------------------------------------------------
' Graph menu
'----------------------------------------------------------------------------
Define M_GRAPH_TYPE                            1001
Define M_GRAPH_LABEL_AXIS                      1002
Define M_GRAPH_VALUE_AXIS                      1003
Define M_GRAPH_SERIES                          1004

'----------------------------------------------------------------------------
' New Graph menu
'----------------------------------------------------------------------------
Define M_GRAPH_FORMATING                       2007
Define M_GRAPH_GENERAL_OPTIONS                 2002
Define M_GRAPH_SERIES_OPTIONS                  2003
Define M_GRAPH_GRID_SCALES                     2004
Define M_GRAPH_TITLES                          2005
Define M_GRAPH_3D_VIEWING_ANGLE                2006
Define M_GRAPH_SAVE_AS_TEMPLATE                2008

'----------------------------------------------------------------------------
' MapBasic menu
'----------------------------------------------------------------------------
Define M_MAPBASIC_CLEAR                        1101
Define M_MAPBASIC_SAVECONTENTS                 1102

'----------------------------------------------------------------------------
' Redistrict menu
'----------------------------------------------------------------------------
Define M_REDISTRICT_ASSIGN                     705
Define M_REDISTRICT_TARGET                     706
Define M_REDISTRICT_ADD                        707
Define M_REDISTRICT_DELETE                     708
Define M_REDISTRICT_OPTIONS                    709

'----------------------------------------------------------------------------
' Legend menu
'----------------------------------------------------------------------------
Define M_LEGEND_ADD_FRAMES                     1903
Define M_LEGEND_REFRESH                        1902
Define M_LEGEND_PROPERTIES                     1901
Define M_LEGEND_DELETE                         1904

'----------------------------------------------------------------------------
' 3DMap menu
'----------------------------------------------------------------------------
Define M_3DMAP_REFRESH_GRID_TEXTURE            2103
Define M_3DMAP_CLONE_VIEW                      2105
Define M_3DMAP_PREVIOUS_VIEW                   2106
Define M_3DMAP_VIEW_ENTIRE_GRID                2101
Define M_3DMAP_VIEWPOINT_CONTROL               2107
Define M_3DMAP_WIREFRAME                       2104
Define M_3DMAP_PROPERTIES                      2102

'----------------------------------------------------------------------------
' Main Buttonpad
'----------------------------------------------------------------------------
Define M_TOOLS_SELECTOR                        1701
Define M_TOOLS_SEARCH_RECT                     1722
Define M_TOOLS_SEARCH_RADIUS                   1703
Define M_TOOLS_SEARCH_BOUNDARY                 1704
Define M_TOOLS_EXPAND                          1705
Define M_TOOLS_SHRINK                          1706
Define M_TOOLS_RECENTER                        1702
Define M_TOOLS_PNT_QUERY                       1707
Define M_TOOLS_HOTLINK                         1736
Define M_TOOLS_LABELER                         1708
Define M_TOOLS_DRAGWINDOW                      1734
Define M_TOOLS_RULER                           1710

'----------------------------------------------------------------------------
' Drawing Buttonpad
'----------------------------------------------------------------------------
Define M_TOOLS_POINT                           1711
Define M_TOOLS_LINE                            1712
Define M_TOOLS_POLYLINE                        1713
Define M_TOOLS_ARC                             1716
Define M_TOOLS_POLYGON                         1714
Define M_TOOLS_ELLIPSE                         1715
Define M_TOOLS_RECTANGLE                       1717
Define M_TOOLS_ROUNDEDRECT                     1718
Define M_TOOLS_TEXT                            1709
Define M_TOOLS_FRAME                           1719
Define M_TOOLS_ADD_NODE                        1723

'----------------------------------------------------------------------------
' DBMS Buttonpad
'  -- most DBMS buttons defined under M_TABLE_{...} except for this one:
'----------------------------------------------------------------------------
Define M_DBMS_OPEN_ODBC                        116

'----------------------------------------------------------------------------
' Adornment context menu items
'----------------------------------------------------------------------------
Define M_ADORNMENT_PROPERTIES	               2401
Define M_ADORNMENT_REMOVE                      2402

'----------------------------------------------------------------------------
' Layer Control menuitems
'----------------------------------------------------------------------------
Define M_LC_VIEW_ENTIRE                        2501
Define M_LC_LAYER_PROPERTIES                   2502
Define M_LC_LABEL_FONT                         2503
Define M_LC_OTHERS_NO_SELECT                   2504
Define M_LC_RENAME_MAP                         2505
Define M_LC_MAP_OPTIONS                        2506
Define M_LC_ADD_GROUP                          2507
Define M_LC_RENAME_GROUP                       2508
Define M_LC_UNGROUP                            2509
Define M_LC_ADDLAYERS                          2510
Define M_LC_ADD_STYLE_OVERRIDE                 2511
Define M_LC_ADD_LABEL_OVERRIDE                 2512
Define M_LC_DISPLAY_OVERRIDE_PROP              2513	
Define M_LC_LABEL_OVERRIDE_PROP                2514	
Define M_LC_SPLIT_OVERRIDE                     2515	
Define M_LC_REMOVE_OVERRIDE                    2516	
Define M_LC_BROWSE_TABLE	                   2517

'----------------------------------------------------------------------------
' Table List Window context menu items
'----------------------------------------------------------------------------
Define M_TLV_SELECT_ALL_FROM_TABLE             2601
Define M_TLV_BROWSE_TABLE                      2602
Define M_TLV_OPEN_NEW_MAP                      2603
Define M_TLV_EXPORT_TABLE                      2604
Define M_TLV_REFRESH_TABLE                     2605
Define M_TLV_TABLE_STRUCTURE                   2606
Define M_TLV_CREATE_POINTS                     2607
Define M_TLV_UPDATE_COLUMN                     2608
Define M_TLV_CLOSE_TABLE                       2609

'----------------------------------------------------------------------------
' Menu and ButtonPad items that do not appear in the standard menus
'----------------------------------------------------------------------------
Define M_TOOLS_MAPBASIC                        1720
Define M_TOOLS_SEARCH_POLYGON                  1733

'----------------------------------------------------------------------------
' Constants whose names have changed: these are left for backward
' compatibility with existing programs.  Recommended action is to use
' the new name as indicated.  Note that there might be some functional
' difference between the old functionality and the current functionality.
'----------------------------------------------------------------------------
Define M_ANALYZE_CUSTOMIZE_LEGEND              M_MAP_MODIFY_THEMATIC
Define M_ANALYZE_SHADE                         M_MAP_THEMATIC
Define M_BROWSE_GRID                           M_BROWSE_OPTIONS
Define M_BROWSE_NEW_RECORD                     M_EDIT_NEW_ROW
Define M_FILE_ABOUT                            M_HELP_ABOUT
Define M_FILE_HELP                             M_HELP_CONTENTS
Define M_FILE_PRINT_SETUP                      M_FILE_PAGE_SETUP
Define M_LAYOUT_LAYOUT_SIZE                    M_LAYOUT_CHANGE_VIEW
Define M_MAP_SETUNITS                          M_MAP_OPTIONS
Define M_OBJECTS_BREAKPOLY                     M_OBJECTS_CVT_PLINE
Define M_OBJECTS_MERGE                         M_OBJECTS_COMBINE
Define M_OBJECTS_RESHAPE                       M_EDIT_RESHAPE
Define M_WINDOW_EXPORT_WINDOW                  M_FILE_SAVE_WINDOW_AS
Define M_WINDOW_TOOL_PALETTE                   M_WINDOW_BUTTONPAD
Define M_FILE_RUN                              M_TOOLS_RUN
Define M_FILE_OPEN_ODBC                        M_DBMS_OPEN_ODBC
Define M_ANALYZE_SELECT                        M_QUERY_SELECT
Define M_ANALYZE_SQLQUERY                      M_QUERY_SQLQUERY
Define M_ANALYZE_SELECTALL                     M_QUERY_SELECTALL
Define M_ANALYZE_INVERTSELECT                  M_QUERY_INVERTSELECT
Define M_ANALYZE_UNSELECT                      M_QUERY_UNSELECT
Define M_ANALYZE_FIND                          M_QUERY_FIND
Define M_ANALYZE_FIND_SELECTION                M_QUERY_FIND_SELECTION
Define M_ANALYZE_CALC_STATISTICS               M_QUERY_CALC_STATISTICS

'----------------------------------------------------------------------------
' Obsolete menu items that are not used in the current version of MapInfo
'----------------------------------------------------------------------------
Define M_BROWSE_EDIT                           701   'OBSOLETE - DOES NOTHING
Define M_MAP_AUTOLABEL                         804   'OBSOLETE - DOES NOTHING
Define M_MAP_PROJECTION                        808   'SAME AS M_MAP_OPTIONS
Define M_FILE_ADD_WORKSPACE                    108   'PART OF M_FILE_OPEN
Define M_SENDMAIL_CURRENTWINDOW                114   'NO LONGER IN MENU SYSTEM
Define M_SENDMAIL_WORKSPACE                    115   'NO LONGER IN MENU SYSTEM

'----------------------------------------------------------------------------
' Menu defines - these represent the predefined menus like File, and can
' be used in the Alter Menu command.  These defines cannot be used in a
' "Run Menu Command" statement.
'----------------------------------------------------------------------------
Define M_FILE                                    1
Define M_EDIT                                    2
Define M_SEARCH                                  3
Define M_QUERY                                   3
Define M_PGM                                     4
Define M_TOOLS                                   4
Define M_OPTIONS                                 5
Define M_WINDOW                                  6
Define M_HELP                                    7
Define M_BROWSE                                  8
Define M_MAP                                     9
Define M_LAYOUT                                 10
Define M_MAPBASIC                               12
Define M_REDISTRICT                             13
Define M_OBJECTS                                14
Define M_TABLE                                  15
Define M_SHORTCUT_DFLT                          16
Define M_SHORTCUT_MAPPER                        17
Define M_SHORTCUT_BROWSER                       18
Define M_SHORTCUT_LAYOUT                        19
Define M_SHORTCUT_CMD                           21
Define M_SHORTCUT_REDISTRICTER                  22
Define M_SHORTCUT_LEGEND                        23
Define M_SHORTCUT_GRAPHTDG                      24
Define M_SHORTCUT_3DMAP                         25
Define M_SHORTCUT_MSG_WIN                       26
Define M_SHORTCUT_STAT_WIN                      27
Define M_3DMAP                                  28
Define M_GRAPHTDG                               29
Define M_LEGEND                                 31
Define M_SHORTCUT_ADORNMENT                     32
Define M_SHORTCUT_LC_LAYERS                     33
Define M_SHORTCUT_LC_MAPS                       34
Define M_SHORTCUT_LC_GROUPS                     35
Define M_SHORTCUT_TABLEADORNMENT                36
Define M_SHORTCUT_TLV_TABLES                    37
Define M_SHORTCUT_LC_OVERRIDES                  38
Define M_OPEN_WEBSERVICE                        39
Define M_FIND_SELECTION                         40
Define M_ORACLE_TOOLS                           41
Define M_TAB_MAINTENANCE                        42
Define M_TAB_RASTER                             43
Define M_LICENSING                              44

'----------------------------------------------------------------------------
' Buttonpad defines - these represent the predefined toolbars, and can
' be used in the Alter ButtonPad command.
'----------------------------------------------------------------------------
Define TB_MAIN                                   1
Define TB_DRAWING                                2
Define TB_TOOLS                                  3
Define TB_STANDARD                               4
Define TB_ODBC                                   5
Define TB_WEB_SVCS                               6

'============================================================================
' end of MENU.DEF
'============================================================================
