📄 mapbasic.bas
字号:
Global Const FRAME_INFO_MAP_LAYER_ID = 2
Global Const FRAME_INFO_REFRESHABLE = 3
Global Const FRAME_INFO_POS_X = 4
Global Const FRAME_INFO_POS_Y = 5
Global Const FRAME_INFO_WIDTH = 6
Global Const FRAME_INFO_HEIGHT = 7
Global Const FRAME_INFO_TITLE = 8
Global Const FRAME_INFO_TITLE_FONT = 9
Global Const FRAME_INFO_SUBTITLE = 10
Global Const FRAME_INFO_SUBTITLE_FONT = 11
Global Const FRAME_INFO_BORDER_PEN = 12
Global Const FRAME_INFO_NUM_STYLES = 13
Global Const FRAME_INFO_VISIBLE = 14
Global Const FRAME_INFO_COLUMN = 15
Global Const FRAME_INFO_LABEL = 16
'============================================================================
' Return codes for FRAME_INFO_TYPE
'============================================================================
Global Const FRAME_TYPE_STYLE = 1
Global Const FRAME_TYPE_THEME = 2
'============================================================================
' LegendStyleInfo attribute codes
'============================================================================
Global Const LEGEND_STYLE_INFO_TEXT = 1
Global Const LEGEND_STYLE_INFO_FONT = 2
Global Const LEGEND_STYLE_INFO_OBJ = 3
'============================================================================
' DateWindow attribute codes
'============================================================================
Global Const DATE_WIN_SESSION = 1
Global Const DATE_WIN_CURPROG = 2
'============================================================================
' end of MAPBASIC.DEF
'============================================================================
'============================================================================
' MapInfo version 5.0 - 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 & Send Mail menus
'----------------------------------------------------------------------------
Global Const M_FILE_NEW = 101
Global Const M_FILE_OPEN = 102
Global Const M_FILE_OPEN_ODBC = 116
Global Const M_FILE_ADD_WORKSPACE = 108
Global Const M_FILE_CLOSE = 103
Global Const M_FILE_CLOSE_ALL = 104
Global Const M_FILE_SAVE = 105
Global Const M_FILE_SAVE_COPY_AS = 106
Global Const M_FILE_SAVE_WORKSPACE = 109
Global Const M_FILE_SAVE_WINDOW_AS = 609
Global Const M_FILE_REVERT = 107
Global Const M_FILE_RUN = 110
Global Const M_FILE_PAGE_SETUP = 111
Global Const M_FILE_PRINT = 112
Global Const M_FILE_EXIT = 113
Global Const M_SENDMAIL_CURRENTWINDOW = 114
Global Const M_SENDMAIL_WORKSPACE = 115
'----------------------------------------------------------------------------
' Edit menu
'----------------------------------------------------------------------------
Global Const M_EDIT_UNDO = 201
Global Const M_EDIT_CUT = 202
Global Const M_EDIT_COPY = 203
Global Const M_EDIT_PASTE = 204
Global Const M_EDIT_CLEAR = 205
Global Const M_EDIT_CLEAROBJ = 206
Global Const M_EDIT_RESHAPE = 1601
Global Const M_EDIT_NEW_ROW = 702
Global Const M_EDIT_GETINFO = 207
'----------------------------------------------------------------------------
' Objects menu
'----------------------------------------------------------------------------
Global Const M_OBJECTS_SET_TARGET = 1610
Global Const M_OBJECTS_CLEAR_TARGET = 1611
Global Const M_OBJECTS_COMBINE = 1605
Global Const M_OBJECTS_SPLIT = 1612
Global Const M_OBJECTS_ERASE = 1613
Global Const M_OBJECTS_ERASE_OUT = 1614
Global Const M_OBJECTS_OVERLAY = 1615
Global Const M_OBJECTS_BUFFER = 1606
Global Const M_OBJECTS_SMOOTH = 1602
Global Const M_OBJECTS_UNSMOOTH = 1603
Global Const M_OBJECTS_CVT_PGON = 1607
Global Const M_OBJECTS_CVT_PLINE = 1604
'----------------------------------------------------------------------------
' Query menu
'----------------------------------------------------------------------------
Global Const M_ANALYZE_SELECT = 301
Global Const M_QUERY_SELECT = 301
Global Const M_ANALYZE_SQLQUERY = 302
Global Const M_QUERY_SQLQUERY = 302
Global Const M_ANALYZE_SELECTALL = 303
Global Const M_QUERY_SELECTALL = 303
Global Const M_ANALYZE_UNSELECT = 304
Global Const M_QUERY_UNSELECT = 304
Global Const M_ANALYZE_FIND = 305
Global Const M_QUERY_FIND = 305
Global Const M_ANALYZE_FIND_SELECTION = 306
Global Const M_QUERY_FIND_SELECTION = 306
Global Const M_ANALYZE_CALC_STATISTICS = 309
Global Const M_QUERY_CALC_STATISTICS = 309
'----------------------------------------------------------------------------
' Table, Maintenance, and Raster menus
'----------------------------------------------------------------------------
Global Const M_TABLE_UPDATE_COLUMN = 405
Global Const M_TABLE_APPEND = 411
Global Const M_TABLE_GEOCODE = 407
Global Const M_TABLE_CREATE_POINTS = 408
Global Const M_TABLE_MERGE_USING_COLUMN = 406
Global Const M_TABLE_IMPORT = 401
Global Const M_TABLE_EXPORT = 402
Global Const M_TABLE_MODIFY_STRUCTURE = 404
Global Const M_TABLE_DELETE = 409
Global Const M_TABLE_RENAME = 410
Global Const M_TABLE_PACK = 403
Global Const M_TABLE_MAKEMAPPABLE = 415
Global Const M_TABLE_UNLINK = 416
Global Const M_TABLE_REFRESH = 417
Global Const M_TABLE_CHANGESYMBOL = 418
Global Const M_TABLE_RASTER_STYLE = 414
Global Const M_TABLE_RASTER_REG = 413
Global Const M_TOOLS_RASTER_REG = 1730
'----------------------------------------------------------------------------
' Options menu
'----------------------------------------------------------------------------
Global Const M_FORMAT_PICK_LINE = 501
Global Const M_FORMAT_PICK_FILL = 502
Global Const M_FORMAT_PICK_SYMBOL = 503
Global Const M_FORMAT_PICK_FONT = 504
Global Const M_WINDOW_BUTTONPAD = 605
Global Const M_WINDOW_LEGEND = 606
Global Const M_WINDOW_STATISTICS = 607
Global Const M_WINDOW_MAPBASIC = 608
Global Const M_WINDOW_STATUSBAR = 616
Global Const M_FORMAT_CUSTOM_COLORS = 617
Global Const M_EDIT_PREFERENCES = 208
Global Const M_EDIT_PREFERENCES_SYSTEM = 210
Global Const M_EDIT_PREFERENCES_FILE = 211
Global Const M_EDIT_PREFERENCES_MAP = 212
Global Const M_EDIT_PREFERENCES_COUNTRY = 213
Global Const M_EDIT_PREFERENCES_PATH = 214
Global Const M_EDIT_PREFERENCES_LEGEND = 215
'----------------------------------------------------------------------------
' Window menu
'----------------------------------------------------------------------------
Global Const M_WINDOW_BROWSE = 601
Global Const M_WINDOW_MAP = 602
Global Const M_WINDOW_GRAPH = 603
Global Const M_WINDOW_LAYOUT = 604
Global Const M_WINDOW_REDISTRICT = 615
Global Const M_WINDOW_REDRAW = 610
Global Const M_WINDOW_TILE = 611
Global Const M_WINDOW_CASCADE = 612
Global Const M_WINDOW_ARRANGEICONS = 613
Global Const M_WINDOW_MORE = 614
Global Const M_WINDOW_FIRST = 620
' - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
' Note: the 2nd through 80th windows can be accessed as (M_WINDOW_FIRST+i-1)
' - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'----------------------------------------------------------------------------
' Help menu
'----------------------------------------------------------------------------
Global Const M_HELP_CONTEXTSENSITIVE = 1201
Global Const M_HELP_CONTENTS = 1202
Global Const M_HELP_SEARCH = 1203
Global Const M_HELP_USE_HELP = 1204
Global Const M_HELP_ABOUT = 1205
Global Const M_HELP_HELPMODE = 1206
Global Const M_HELP_TECHSUPPORT = 1208
Global Const M_HELP_CONNECT_MIFORUM = 1209
Global Const M_HELP_MAPINFO_WWW = 1210
Global Const M_HELP_MAPINFO_WWW_STORE = 1211
'----------------------------------------------------------------------------
' Browse menu
'----------------------------------------------------------------------------
Global Const M_BROWSE_PICK_FIELDS = 704
Global Const M_BROWSE_OPTIONS = 703
'----------------------------------------------------------------------------
' Map menu
'----------------------------------------------------------------------------
Global Const M_MAP_LAYER_CONTROL = 801
Global Const M_MAP_THEMATIC = 307
Global Const M_MAP_MODIFY_THEMATIC = 308
Global Const M_MAP_CHANGE_VIEW = 805
Global Const M_MAP_CLONE_MAPPER = 811
Global Const M_MAP_PREVIOUS = 806
Global Const M_MAP_ENTIRE_LAYER = 807
Global Const M_MAP_CLEAR_CUSTOM_LABELS = 814
Global Const M_MAP_SAVE_COSMETIC = 809
Global Const M_MAP_CLEAR_COSMETIC = 810
Global Const M_MAP_SET_CLIP_REGION = 812
Global Const M_MAP_CLIP_REGION_ONOFF = 813
Global Const M_MAP_SETUPDIGITIZER = 803
Global Const M_MAP_OPTIONS = 802
Global Const M_MAP_CREATE_LEGEND = 816
'----------------------------------------------------------------------------
' Layout menu
'----------------------------------------------------------------------------
Global Const M_LAYOUT_CHANGE_VIEW = 902
Global Const M_LAYOUT_ACTUAL = 903
Global Const M_LAYOUT_ENTIRE = 904
Global Const M_LAYOUT_PREVIOUS = 905
Global Const M_LAYOUT_BRING2FRONT = 906
Global Const M_LAYOUT_SEND2BACK = 907
Global Const M_LAYOUT_ALIGN = 908
Global Const M_LAYOUT_DROPSHADOWS = 909
Global Const M_LAYOUT_DISPLAYOPTIONS = 901
'----------------------------------------------------------------------------
' Graph menu
'----------------------------------------------------------------------------
Global Const M_GRAPH_TYPE = 1001
Global Const M_GRAPH_LABEL_AXIS = 1002
Global Const M_GRAPH_VALUE_AXIS = 1003
Global Const M_GRAPH_SERIES = 1004
'----------------------------------------------------------------------------
' MapBasic menu
'----------------------------------------------------------------------------
Global Const M_MAPBASIC_CLEAR = 1101
Global Const M_MAPBASIC_SAVECONTENTS = 1102
'----------------------------------------------------------------------------
' Redistrict menu
'----------------------------------------------------------------------------
Global Const M_REDISTRICT_ASSIGN = 705
Global Const M_REDISTRICT_TARGET = 706
Global Const M_REDISTRICT_ADD = 707
Global Const M_REDISTRICT_DELETE = 708
Global Const M_REDISTRICT_OPTIONS = 709
'----------------------------------------------------------------------------
' Legend menu
'----------------------------------------------------------------------------
Global Const M_LEGEND_PROPERTIES = 1901
Global Const M_LEGEND_REFRESH = 1902
Global Const M_LEGEND_ADD_FRAMES = 1903
Global Const M_LEGEND_DELETE = 1904
'----------------------------------------------------------------------------
' Main Buttonpad
'----------------------------------------------------------------------------
Global Const M_TOOLS_SELECTOR = 1701
Global Const M_TOOLS_SEARCH_RECT = 1722
Global Const M_TOOLS_SEARCH_RADIUS = 1703
Global Const M_TOOLS_SEARCH_BOUNDARY = 1704
Global Const M_TOOLS_EXPAND = 1705
Global Const M_TOOLS_SHRINK = 1706
Global Const M_TOOLS_RECENTER = 1702
Global Const M_TOOLS_PNT_QUERY = 1707
Global Const M_TOOLS_LABELER = 1708
Global Const M_TOOLS_DRAGWINDOW = 1734
Global Const M_TOOLS_RULER = 1710
'----------------------------------------------------------------------------
' Drawing Buttonpad
'----------------------------------------------------------------------------
Global Const M_TOOLS_POINT = 1711
Global Const M_TOOLS_LINE = 1712
Global Const M_TOOLS_POLYLINE = 1713
Global Const M_TOOLS_ARC = 1716
Global Const M_TOOLS_POLYGON = 1714
Global Const M_TOOLS_ELLIPSE = 1715
Global Const M_TOOLS_RECTANGLE = 1717
Global Const M_TOOLS_ROUNDEDRECT = 1718
Global Const M_TOOLS_TEXT = 1709
Global Const M_TOOLS_FRAME = 1719
Global Const M_TOOLS_ADD_NODE = 1723
'----------------------------------------------------------------------------
' Menu and ButtonPad items that do not appear in the standard menus
'----------------------------------------------------------------------------
Global Const M_TOOLS_MAPBASIC = 1720
Global Const M_TOOLS_SEARCH_POLYGON = 1733
'----------------------------------------------------------------------------
' Codes passed to the Map3DInfo function to get info about a map3d win.
'----------------------------------------------------------------------------
Global Const MAP3D_INFO_SCALE = 1
Global Const MAP3D_INFO_RESOLUTION_X = 2
Global Const MAP3D_INFO_RESOLUTION_Y = 3
Global Const MAP3D_INFO_BACKGROUND = 4
Global Const MAP3D_INFO_UNITS = 5
Global Const MAP3D_INFO_LIGHT_X = 6
Global Const MAP3D_INFO_LIGHT_Y = 7
Global Const MAP3D_INFO_LIGHT_Z = 8
Global Const MAP3D_INFO_LIGHT_COLOR = 9
Global Const MAP3D_INFO_CAMERA_X = 10
Global Const MAP3D_INFO_CAMERA_Y = 11
Global Const MAP3D_INFO_CAMERA_Z = 12
Global Const MAP3D_INFO_CAMERA_FOCAL_X = 13
Global Const MAP3D_INFO_CAMERA_FOCAL_Y = 14
Global Const MAP3D_INFO_CAMERA_FOCAL_Z = 15
Global Const MAP3D_INFO_CAMERA_VU_1 = 16
Global Const MAP3D_INFO_CAMERA_VU_2 = 17
Global Const MAP3D_INFO_CAMERA_VU_3 = 18
Global Const MAP3D_INFO_CAMERA_VPN_1 = 19
Global Const MAP3D_INFO_CAMERA_VPN_2 = 20
Global Const MAP3D_INFO_CAMERA_VPN_3 = 21
Global Const MAP3D_INFO_CAMERA_CLIP_NEAR = 22
Global Const MAP3D_INFO_CAMERA_CLIP_FAR = 23
'============================================================================
' end of MENU.DEF
'============================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -