MapInfo C# Include File
This file is based on the MapInfo 7.8 C header file (MapBasic.h). I haven't had any comment about it, and I use it without any problems. I have tested it with Borland Delphi Studio 2005, and MS Visual Studio 2003. I will post some sample C# code when I get a chance.
Size 57.8 kB - File type text/x-csharpFile contents
using System;
namespace MapBasic
{
/// <summary>
/// Summary description for Class.
/// </summary>
public class Constants
{
//============================================================================
// MapInfo version 7.8 - System defines
//----------------------------------------------------------------------------
// This file contains defines useful when programming in the MapBasic
// language. There are three versions of this file:
// MAPBASIC.DEF - MapBasic syntax
// MAPBASIC.BAS - Visual Basic syntax
// MAPBASIC.H - C/C++ syntax
//----------------------------------------------------------------------------
// The defines in this file are organized into the following sections:
// General Purpose defines:
// macros, logical constants, angle conversion, colors, string length
// ButtonPadInfo() defines
// ColumnInfo() and column type defines
// CommandInfo() and task switch defines
// DateWindow() defines
// FileAttr() and file access mode defines
// GetFolderPath$() defines
// IntersectNodes() parameters
// LabelInfo() defines
// LayerInfo(), display mode, label property, layer type, hotlink defines
// LegendInfo() and legend orientation defines
// LegendFrameInfo() and frame type defines
// LegendStyleInfo() defines
// LocateFile$() defines
// Map3DInfo() defines
// MapperInfo(), display mode, calculation type, and clip type defines
// MenuItemInfoByID() and MenuItemInfoByHandler() defines
// ObjectGeography() defines
// ObjectInfo() and object type defines
// PrismMapInfo() defines
// SearchInfo() defines
// SelectionInfo() defines
// Server statement and function defines
// SessionInfo() defines
// Set Next Document Style defines
// StringCompare() return values
// StyleAttr() defines
// SystemInfo(), platform, and version defines
// TableInfo() and table type defines
// WindowInfo(), window type and state, and print orientation defines
// Abbreviated list of error codes
// Backward Compatibility defines
//============================================================================
// MAPBASIC.DEF is converted into MAPBASIC.H by doing the following:
// - concatenate MAPBASIC.DEF and MENU.DEF into MAPBASIC.H
// - search & replace "//" at begining of a line with "//"
// - search & replace "Define" at begining of a line with "#define"
// - delete the following sections:
// * General Purpose defines:
// Macros, Logical Constants, Angle Conversions
// * Abbreviated list of error codes
// * Backward Compatibility defines
// * Menu constants whose names have changed
// * Obsolete menu items
//============================================================================
// MAPBASIC.DEF is converted into MAPBASIC.BAS by doing the following:
// - concatenate MAPBASIC.DEF and MENU.DEF into MAPBASIC.BAS
// - search & replace "Define <name>" with "public const int <name> =", e.g.
// "^Define \([!-z]+\) +\([!-z]\)" with "public const int \1 = \2" in TextPad
// - delete the following sections:
// * General Purpose defines:
// Macros, Logical Constants, Angle Conversions
// * Abbreviated list of error codes
// * Backward Compatibility defines
// * Menu constants whose names have changed
// * Obsolete menu items
//============================================================================
//============================================================================
// General Purpose defines
//============================================================================
//----------------------------------------------------------------------------
// Colors
//----------------------------------------------------------------------------
public const int BLACK = 0;
public const int WHITE = 16777215;
public const int RED = 16711680;
public const int GREEN = 65280;
public const int BLUE = 255;
public const int CYAN = 65535;
public const int MAGENTA = 16711935;
public const int YELLOW = 16776960;
//----------------------------------------------------------------------------
//Maximum length for character string
//----------------------------------------------------------------------------
public const int MAX_STRING_LENGTH = 32767;
//============================================================================
// ButtonPadInfo() defines
//============================================================================
public const int BTNPAD_INFO_FLOATING = 1;
public const int BTNPAD_INFO_WIDTH = 2;
public const int BTNPAD_INFO_NBTNS = 3;
public const int BTNPAD_INFO_X = 4;
public const int BTNPAD_INFO_Y = 5;
public const int BTNPAD_INFO_WINID = 6;
//============================================================================
// ColumnInfo() defines
//============================================================================
public const int COL_INFO_NAME = 1;
public const int COL_INFO_NUM = 2;
public const int COL_INFO_TYPE = 3;
public const int COL_INFO_WIDTH = 4;
public const int COL_INFO_DECPLACES = 5;
public const int COL_INFO_INDEXED = 6;
public const int COL_INFO_EDITABLE = 7;
//----------------------------------------------------------------------------
// Column type defines, returned by ColumnInfo() for COL_INFO_TYPE
//----------------------------------------------------------------------------
public const int COL_TYPE_CHAR = 1;
public const int COL_TYPE_DECIMAL = 2;
public const int COL_TYPE_INTEGER = 3;
public const int COL_TYPE_SMALLINT = 4;
public const int COL_TYPE_DATE = 5;
public const int COL_TYPE_LOGICAL = 6;
public const int COL_TYPE_GRAPHIC = 7;
public const int COL_TYPE_FLOAT = 8;
//============================================================================
// CommandInfo() defines
//============================================================================
public const int CMD_INFO_X = 1;
public const int CMD_INFO_Y = 2;
public const int CMD_INFO_SHIFT = 3;
public const int CMD_INFO_CTRL = 4;
public const int CMD_INFO_X2 = 5;
public const int CMD_INFO_Y2 = 6;
public const int CMD_INFO_TOOLBTN = 7;
public const int CMD_INFO_MENUITEM = 8;
public const int CMD_INFO_WIN = 1;
public const int CMD_INFO_SELTYPE = 1;
public const int CMD_INFO_ROWID = 2;
public const int CMD_INFO_INTERRUPT = 3;
public const int CMD_INFO_STATUS = 1;
public const int CMD_INFO_MSG = 1000;
public const int CMD_INFO_DLG_OK = 1;
public const int CMD_INFO_DLG_DBL = 1;
public const int CMD_INFO_FIND_RC = 3;
public const int CMD_INFO_FIND_ROWID = 4;
public const int CMD_INFO_XCMD = 1;
public const int CMD_INFO_CUSTOM_OBJ = 1;
public const int CMD_INFO_TASK_SWITCH = 1;
public const int CMD_INFO_EDIT_TABLE = 1;
public const int CMD_INFO_EDIT_STATUS = 2;
public const int CMD_INFO_EDIT_ASK = 1;
public const int CMD_INFO_EDIT_SAVE = 2;
public const int CMD_INFO_EDIT_DISCARD = 3;
public const int CMD_INFO_HL_WINDOW_ID = 17;
public const int CMD_INFO_HL_TABLE_NAME = 18;
public const int CMD_INFO_HL_ROWID = 19;
public const int CMD_INFO_HL_LAYER_ID = 20;
public const int CMD_INFO_HL_FILE_NAME = 21;
//----------------------------------------------------------------------------
// Task Switches, returned by CommandInfo() for CMD_INFO_TASK_SWITCH
//----------------------------------------------------------------------------
public const int SWITCHING_OUT_OF_MAPINFO = 0;
public const int SWITCHING_INTO_MAPINFO = 1;
//============================================================================
// DateWindow() defines
//============================================================================
public const int DATE_WIN_SESSION = 1;
public const int DATE_WIN_CURPROG = 2;
//============================================================================
// FileAttr() defines
//============================================================================
public const int FILE_ATTR_MODE = 1;
public const int FILE_ATTR_FILESIZE = 2;
//----------------------------------------------------------------------------
// File Access Modes, returned by FileAttr() for FILE_ATTR_MODE
//----------------------------------------------------------------------------
public const int MODE_INPUT = 0;
public const int MODE_OUTPUT = 1;
public const int MODE_APPEND = 2;
public const int MODE_RANDOM = 3;
public const int MODE_BINARY = 4;
//============================================================================
// GetFolderPath$() defines
//============================================================================
public const int FOLDER_MI_APPDATA = -1;
public const int FOLDER_MI_LOCAL_APPDATA = -2;
public const int FOLDER_MI_PREFERENCE = -3;
public const int FOLDER_MI_COMMON_APPDATA = -4;
public const int FOLDER_APPDATA = 26;
public const int FOLDER_LOCAL_APPDATA = 28;
public const int FOLDER_COMMON_APPDATA = 35;
public const int FOLDER_COMMON_DOCS = 46;
public const int FOLDER_MYDOCS = 5;
public const int FOLDER_MYPICS = 39;
//============================================================================
// IntersectNodes() defines
//============================================================================
public const int INCL_CROSSINGS = 1;
public const int INCL_COMMON = 6;
public const int INCL_ALL = 7;
//============================================================================
// LabelInfo() defines
//============================================================================
public const int LABEL_INFO_OBJECT = 1;
public const int LABEL_INFO_POSITION = 2;
public const int LABEL_INFO_ANCHORX = 3;
public const int LABEL_INFO_ANCHORY = 4;
public const int LABEL_INFO_OFFSET = 5;
public const int LABEL_INFO_ROWID = 6;
public const int LABEL_INFO_TABLE = 7;
public const int LABEL_INFO_EDIT = 8;
public const int LABEL_INFO_EDIT_VISIBILITY = 9;
public const int LABEL_INFO_EDIT_ANCHOR = 10;
public const int LABEL_INFO_EDIT_OFFSET = 11;
public const int LABEL_INFO_EDIT_FONT = 12;
public const int LABEL_INFO_EDIT_PEN = 13;
public const int LABEL_INFO_EDIT_TEXT = 14;
public const int LABEL_INFO_EDIT_TEXTARROW = 15;
public const int LABEL_INFO_EDIT_ANGLE = 16;
public const int LABEL_INFO_EDIT_POSITION = 17;
public const int LABEL_INFO_EDIT_TEXTLINE = 18;
public const int LABEL_INFO_SELECT = 19;
public const int LABEL_INFO_DRAWN = 20;
//============================================================================
// LayerInfo() defines
//============================================================================
public const int LAYER_INFO_NAME = 1;
public const int LAYER_INFO_EDITABLE = 2;
public const int LAYER_INFO_SELECTABLE = 3;
public const int LAYER_INFO_ZOOM_LAYERED = 4;
public const int LAYER_INFO_ZOOM_MIN = 5;
public const int LAYER_INFO_ZOOM_MAX = 6;
public const int LAYER_INFO_COSMETIC = 7;
public const int LAYER_INFO_PATH = 8;
public const int LAYER_INFO_DISPLAY = 9;
public const int LAYER_INFO_OVR_LINE = 10;
public const int LAYER_INFO_OVR_PEN = 11;
public const int LAYER_INFO_OVR_BRUSH = 12;
public const int LAYER_INFO_OVR_SYMBOL = 13;
public const int LAYER_INFO_OVR_FONT = 14;
public const int LAYER_INFO_LBL_EXPR = 15;
public const int LAYER_INFO_LBL_LT = 16;
public const int LAYER_INFO_LBL_CURFONT = 17;
public const int LAYER_INFO_LBL_FONT = 18;
public const int LAYER_INFO_LBL_PARALLEL = 19;
public const int LAYER_INFO_LBL_POS = 20;
public const int LAYER_INFO_ARROWS = 21;
public const int LAYER_INFO_NODES = 22;
public const int LAYER_INFO_CENTROIDS = 23;
public const int LAYER_INFO_TYPE = 24;
public const int LAYER_INFO_LBL_VISIBILITY = 25;
public const int LAYER_INFO_LBL_ZOOM_MIN = 26;
public const int LAYER_INFO_LBL_ZOOM_MAX = 27;
public const int LAYER_INFO_LBL_AUTODISPLAY = 28;
public const int LAYER_INFO_LBL_OVERLAP = 29;
public const int LAYER_INFO_LBL_DUPLICATES = 30;
public const int LAYER_INFO_LBL_OFFSET = 31;
public const int LAYER_INFO_LBL_MAX = 32;
public const int LAYER_INFO_LBL_PARTIALSEGS = 33;
public const int LAYER_INFO_HOTLINK_EXPR = 34;
public const int LAYER_INFO_HOTLINK_MODE = 35;
public const int LAYER_INFO_HOTLINK_RELATIVE = 36;
//----------------------------------------------------------------------------
// Display Modes, returned by LayerInfo() for LAYER_INFO_DISPLAY
//----------------------------------------------------------------------------
public const int LAYER_INFO_DISPLAY_OFF = 0;
public const int LAYER_INFO_DISPLAY_GRAPHIC = 1;
public const int LAYER_INFO_DISPLAY_GLOBAL = 2;
public const int LAYER_INFO_DISPLAY_VALUE = 3;
//----------------------------------------------------------------------------
// Label Linetypes, returned by LayerInfo() for LAYER_INFO_LBL_LT
//----------------------------------------------------------------------------
public const int LAYER_INFO_LBL_LT_NONE = 0;
public const int LAYER_INFO_LBL_LT_SIMPLE = 1;
public const int LAYER_INFO_LBL_LT_ARROW = 2;
//----------------------------------------------------------------------------
// Label Positions, returned by LayerInfo() for LAYER_INFO_LBL_POS
//----------------------------------------------------------------------------
public const int LAYER_INFO_LBL_POS_CC = 0;
public const int LAYER_INFO_LBL_POS_TL = 1;
public const int LAYER_INFO_LBL_POS_TC = 2;
public const int LAYER_INFO_LBL_POS_TR = 3;
public const int LAYER_INFO_LBL_POS_CL = 4;
public const int LAYER_INFO_LBL_POS_CR = 5;
public const int LAYER_INFO_LBL_POS_BL = 6;
public const int LAYER_INFO_LBL_POS_BC = 7;
public const int LAYER_INFO_LBL_POS_BR = 8;
//----------------------------------------------------------------------------
// Layer Types, returned by LayerInfo() for LAYER_INFO_TYPE
//----------------------------------------------------------------------------
public const int LAYER_INFO_TYPE_NORMAL = 0;
public const int LAYER_INFO_TYPE_COSMETIC = 1;
public const int LAYER_INFO_TYPE_IMAGE = 2;
public const int LAYER_INFO_TYPE_THEMATIC = 3;
public const int LAYER_INFO_TYPE_GRID = 4;
public const int LAYER_INFO_TYPE_WMS = 5;
//----------------------------------------------------------------------------
// Label visibility modes, from LayerInfo() for LAYER_INFO_LBL_VISIBILITY
//----------------------------------------------------------------------------
public const int LAYER_INFO_LBL_VIS_OFF = 1;
public const int LAYER_INFO_LBL_VIS_ZOOM = 2;
public const int LAYER_INFO_LBL_VIS_ON = 3;
//----------------------------------------------------------------------------
// Hotlink activation modes, from LayerInfo() for LAYER_INFO_HOTLINK_MODE
//----------------------------------------------------------------------------
public const int HOTLINK_MODE_LABEL = 1;
public const int HOTLINK_MODE_OBJ = 2;
public const int HOTLINK_MODE_BOTH = 3;
//============================================================================
// LegendInfo() defines
//============================================================================
public const int LEGEND_INFO_MAP_ID = 1;
public const int LEGEND_INFO_ORIENTATION = 2;
public const int LEGEND_INFO_NUM_FRAMES = 3;
public const int LEGEND_INFO_STYLE_SAMPLE_SIZE = 4;
//============================================================================
// Orientation codes, returned by LegendInfo() for LEGEND_INFO_ORIENTATION
//============================================================================
public const int ORIENTATION_PORTRAIT = 1;
public const int ORIENTATION_LANDSCAPE = 2;
public const int ORIENTATION_CUSTOM = 3;
//----------------------------------------------------------------------------
// Style sample codes, from LegendInfo() for LEGEND_INFO_STYLE_SAMPLE_SIZE
//----------------------------------------------------------------------------
public const int STYLE_SAMPLE_SIZE_SMALL = 0;
public const int STYLE_SAMPLE_SIZE_LARGE = 1;
//============================================================================
// LegendFrameInfo() defines
//============================================================================
public const int FRAME_INFO_TYPE = 1;
public const int FRAME_INFO_MAP_LAYER_ID = 2;
public const int FRAME_INFO_REFRESHABLE = 3;
public const int FRAME_INFO_POS_X = 4;
public const int FRAME_INFO_POS_Y = 5;
public const int FRAME_INFO_WIDTH = 6;
public const int FRAME_INFO_HEIGHT = 7;
public const int FRAME_INFO_TITLE = 8;
public const int FRAME_INFO_TITLE_FONT = 9;
public const int FRAME_INFO_SUBTITLE = 10;
public const int FRAME_INFO_SUBTITLE_FONT = 11;
public const int FRAME_INFO_BORDER_PEN = 12;
public const int FRAME_INFO_NUM_STYLES = 13;
public const int FRAME_INFO_VISIBLE = 14;
public const int FRAME_INFO_COLUMN = 15;
public const int FRAME_INFO_LABEL = 16;
//============================================================================
// Frame Types, returned by LegendFrameInfo() for FRAME_INFO_TYPE
//============================================================================
public const int FRAME_TYPE_STYLE = 1;
public const int FRAME_TYPE_THEME = 2;
//============================================================================
// LegendStyleInfo() defines
//============================================================================
public const int LEGEND_STYLE_INFO_TEXT = 1;
public const int LEGEND_STYLE_INFO_FONT = 2;
public const int LEGEND_STYLE_INFO_OBJ = 3;
//============================================================================
// LocateFile$() defines
//============================================================================
public const int LOCATE_PREF_FILE = 0;
public const int LOCATE_DEF_WOR = 1;
public const int LOCATE_CLR_FILE = 2;
public const int LOCATE_PEN_FILE = 3;
public const int LOCATE_FNT_FILE = 4;
public const int LOCATE_ABB_FILE = 5;
public const int LOCATE_PRJ_FILE = 6;
public const int LOCATE_MNU_FILE = 7;
public const int LOCATE_CUSTSYMB_DIR = 8;
public const int LOCATE_THMTMPLT_DIR = 9;
public const int LOCATE_GRAPH_DIR = 10;
//============================================================================
// Map3DInfo() defines
//============================================================================
public const int MAP3D_INFO_SCALE = 1;
public const int MAP3D_INFO_RESOLUTION_X = 2;
public const int MAP3D_INFO_RESOLUTION_Y = 3;
public const int MAP3D_INFO_BACKGROUND = 4;
public const int MAP3D_INFO_UNITS = 5;
public const int MAP3D_INFO_LIGHT_X = 6;
public const int MAP3D_INFO_LIGHT_Y = 7;
public const int MAP3D_INFO_LIGHT_Z = 8;
public const int MAP3D_INFO_LIGHT_COLOR = 9;
public const int MAP3D_INFO_CAMERA_X = 10;
public const int MAP3D_INFO_CAMERA_Y = 11;
public const int MAP3D_INFO_CAMERA_Z = 12;
public const int MAP3D_INFO_CAMERA_FOCAL_X = 13;
public const int MAP3D_INFO_CAMERA_FOCAL_Y = 14;
public const int MAP3D_INFO_CAMERA_FOCAL_Z = 15;
public const int MAP3D_INFO_CAMERA_VU_1 = 16;
public const int MAP3D_INFO_CAMERA_VU_2 = 17;
public const int MAP3D_INFO_CAMERA_VU_3 = 18;
public const int MAP3D_INFO_CAMERA_VPN_1 = 19;
public const int MAP3D_INFO_CAMERA_VPN_2 = 20;
public const int MAP3D_INFO_CAMERA_VPN_3 = 21;
public const int MAP3D_INFO_CAMERA_CLIP_NEAR = 22;
public const int MAP3D_INFO_CAMERA_CLIP_FAR = 23;
//============================================================================
// MapperInfo() defines
//============================================================================
public const int MAPPER_INFO_ZOOM = 1;
public const int MAPPER_INFO_SCALE = 2;
public const int MAPPER_INFO_CENTERX = 3;
public const int MAPPER_INFO_CENTERY = 4;
public const int MAPPER_INFO_MINX = 5;
public const int MAPPER_INFO_MINY = 6;
public const int MAPPER_INFO_MAXX = 7;
public const int MAPPER_INFO_MAXY = 8;
public const int MAPPER_INFO_LAYERS = 9;
public const int MAPPER_INFO_EDIT_LAYER = 10;
public const int MAPPER_INFO_XYUNITS = 11;
public const int MAPPER_INFO_DISTUNITS = 12;
public const int MAPPER_INFO_AREAUNITS = 13;
public const int MAPPER_INFO_SCROLLBARS = 14;
public const int MAPPER_INFO_DISPLAY = 15;
public const int MAPPER_INFO_NUM_THEMATIC = 16;
public const int MAPPER_INFO_COORDSYS_CLAUSE = 17;
public const int MAPPER_INFO_COORDSYS_NAME = 18;
public const int MAPPER_INFO_MOVE_DUPLICATE_NODES = 19;
public const int MAPPER_INFO_DIST_CALC_TYPE = 20;
public const int MAPPER_INFO_DISPLAY_DMS = 21;
public const int MAPPER_INFO_COORDSYS_CLAUSE_WITH_BOUNDS = 22;
public const int MAPPER_INFO_CLIP_TYPE = 23;
public const int MAPPER_INFO_CLIP_REGION = 24;
//----------------------------------------------------------------------------
// Display Modes, returned by MapperInfo() for MAPPER_INFO_DISPLAY_DMS
//----------------------------------------------------------------------------
public const int MAPPER_INFO_DISPLAY_DECIMAL = 0;
public const int MAPPER_INFO_DISPLAY_DEGMINSEC = 1;
public const int MAPPER_INFO_DISPLAY_MGRS = 2;
//----------------------------------------------------------------------------
// Display Modes, returned by MapperInfo() for MAPPER_INFO_DISPLAY
//----------------------------------------------------------------------------
public const int MAPPER_INFO_DISPLAY_SCALE = 0;
public const int MAPPER_INFO_DISPLAY_ZOOM = 1;
public const int MAPPER_INFO_DISPLAY_POSITION = 2;
//----------------------------------------------------------------------------
// Distance Calculation Types from MapperInfo() for MAPPER_INFO_DIST_CALC_TYPE
//----------------------------------------------------------------------------
public const int MAPPER_INFO_DIST_SPHERICAL = 0;
public const int MAPPER_INFO_DIST_CARTESIAN = 1;
//----------------------------------------------------------------------------
// Clip Types, returned by MapperInfo() for MAPPER_INFO_CLIP_TYPE
//----------------------------------------------------------------------------
public const int MAPPER_INFO_CLIP_DISPLAY_ALL = 0;
public const int MAPPER_INFO_CLIP_DISPLAY_POLYOBJ = 1;
public const int MAPPER_INFO_CLIP_OVERLAY = 2;
//============================================================================
// MenuItemInfoByID() and MenuItemInfoByHandler() defines
//============================================================================
public const int MENUITEM_INFO_ENABLED = 1;
public const int MENUITEM_INFO_CHECKED = 2;
public const int MENUITEM_INFO_CHECKABLE = 3;
public const int MENUITEM_INFO_SHOWHIDEABLE = 4;
public const int MENUITEM_INFO_ACCELERATOR = 5;
public const int MENUITEM_INFO_TEXT = 6;
public const int MENUITEM_INFO_HELPMSG = 7;
public const int MENUITEM_INFO_HANDLER = 8;
public const int MENUITEM_INFO_ID = 9;
//============================================================================
// ObjectGeography() defines
//============================================================================
public const int OBJ_GEO_MINX = 1;
public const int OBJ_GEO_LINEBEGX = 1;
public const int OBJ_GEO_POINTX = 1;
public const int OBJ_GEO_MINY = 2;
public const int OBJ_GEO_LINEBEGY = 2;
public const int OBJ_GEO_POINTY = 2;
public const int OBJ_GEO_MAXX = 3;
public const int OBJ_GEO_LINEENDX = 3;
public const int OBJ_GEO_MAXY = 4;
public const int OBJ_GEO_LINEENDY = 4;
public const int OBJ_GEO_ARCBEGANGLE = 5;
public const int OBJ_GEO_TEXTLINEX = 5;
public const int OBJ_GEO_ROUNDRADIUS = 5;
public const int OBJ_GEO_CENTROID = 5;
public const int OBJ_GEO_ARCENDANGLE = 6;
public const int OBJ_GEO_TEXTLINEY = 6;
public const int OBJ_GEO_TEXTANGLE = 7;
//============================================================================
// ObjectInfo() defines
//============================================================================
public const int OBJ_INFO_TYPE = 1;
public const int OBJ_INFO_PEN = 2;
public const int OBJ_INFO_SYMBOL = 2;
public const int OBJ_INFO_TEXTFONT = 2;
public const int OBJ_INFO_BRUSH = 3;
public const int OBJ_INFO_NPNTS = 20;
public const int OBJ_INFO_TEXTSTRING = 3;
public const int OBJ_INFO_SMOOTH = 4;
public const int OBJ_INFO_FRAMEWIN = 4;
public const int OBJ_INFO_NPOLYGONS = 21;
public const int OBJ_INFO_TEXTSPACING = 4;
public const int OBJ_INFO_TEXTJUSTIFY = 5;
public const int OBJ_INFO_FRAMETITLE = 6;
public const int OBJ_INFO_TEXTARROW = 6;
public const int OBJ_INFO_FILLFRAME = 7;
public const int OBJ_INFO_REGION = 8;
public const int OBJ_INFO_PLINE = 9;
public const int OBJ_INFO_MPOINT = 10;
public const int OBJ_INFO_NONEMPTY = 11;
//----------------------------------------------------------------------------
// Object types, returned by ObjectInfo() for OBJ_INFO_TYPE
//----------------------------------------------------------------------------
public const int OBJ_TYPE_ARC = 1;
public const int OBJ_TYPE_ELLIPSE = 2;
public const int OBJ_TYPE_LINE = 3;
public const int OBJ_TYPE_PLINE = 4;
public const int OBJ_TYPE_POINT = 5;
public const int OBJ_TYPE_FRAME = 6;
public const int OBJ_TYPE_REGION = 7;
public const int OBJ_TYPE_RECT = 8;
public const int OBJ_TYPE_ROUNDRECT = 9;
public const int OBJ_TYPE_TEXT = 10;
public const int OBJ_TYPE_MPOINT = 11;
public const int OBJ_TYPE_COLLECTION = 12;
//============================================================================
// PrismMapInfo() defines
//============================================================================
public const int PRISMMAP_INFO_SCALE = 1;
public const int PRISMMAP_INFO_BACKGROUND = 4;
public const int PRISMMAP_INFO_LIGHT_X = 6;
public const int PRISMMAP_INFO_LIGHT_Y = 7;
public const int PRISMMAP_INFO_LIGHT_Z = 8;
public const int PRISMMAP_INFO_LIGHT_COLOR = 9;
public const int PRISMMAP_INFO_CAMERA_X = 10;
public const int PRISMMAP_INFO_CAMERA_Y = 11;
public const int PRISMMAP_INFO_CAMERA_Z = 12;
public const int PRISMMAP_INFO_CAMERA_FOCAL_X = 13;
public const int PRISMMAP_INFO_CAMERA_FOCAL_Y = 14;
public const int PRISMMAP_INFO_CAMERA_FOCAL_Z = 15;
public const int PRISMMAP_INFO_CAMERA_VU_1 = 16;
public const int PRISMMAP_INFO_CAMERA_VU_2 = 17;
public const int PRISMMAP_INFO_CAMERA_VU_3 = 18;
public const int PRISMMAP_INFO_CAMERA_VPN_1 = 19;
public const int PRISMMAP_INFO_CAMERA_VPN_2 = 20;
public const int PRISMMAP_INFO_CAMERA_VPN_3 = 21;
public const int PRISMMAP_INFO_CAMERA_CLIP_NEAR = 22;
public const int PRISMMAP_INFO_CAMERA_CLIP_FAR = 23;
public const int PRISMMAP_INFO_INFOTIP_EXPR = 24;
//============================================================================
// SearchInfo() defines
//============================================================================
public const int SEARCH_INFO_TABLE = 1;
public const int SEARCH_INFO_ROW = 2;
//============================================================================
// SelectionInfo() defines
//============================================================================
public const int SEL_INFO_TABLENAME = 1;
public const int SEL_INFO_SELNAME = 2;
public const int SEL_INFO_NROWS = 3;
//============================================================================
// Server statement and function defines
//============================================================================
//----------------------------------------------------------------------------
// Return Codes
//----------------------------------------------------------------------------
public const int SRV_SUCCESS = 0;
public const int SRV_SUCCESS_WITH_INFO = 1;
public const int SRV_ERROR = -1;
public const int SRV_INVALID_HANDLE = -2;
public const int SRV_NEED_DATA = 99;
public const int SRV_NO_MORE_DATA = 100;
//----------------------------------------------------------------------------
// Special values for the status associated with a fetched value
//----------------------------------------------------------------------------
public const int SRV_NULL_DATA = -1;
public const int SRV_TRUNCATED_DATA = -2;
//----------------------------------------------------------------------------
// Server_ColumnInfo() defines
//----------------------------------------------------------------------------
public const int SRV_COL_INFO_NAME = 1;
public const int SRV_COL_INFO_TYPE = 2;
public const int SRV_COL_INFO_WIDTH = 3;
public const int SRV_COL_INFO_PRECISION = 4;
public const int SRV_COL_INFO_SCALE = 5;
public const int SRV_COL_INFO_VALUE = 6;
public const int SRV_COL_INFO_STATUS = 7;
public const int SRV_COL_INFO_ALIAS = 8;
//----------------------------------------------------------------------------
// Column types, returned by Server_ColumnInfo() for SRV_COL_INFO_TYPE
//----------------------------------------------------------------------------
public const int SRV_COL_TYPE_NONE = 0;
public const int SRV_COL_TYPE_CHAR = 1;
public const int SRV_COL_TYPE_DECIMAL = 2;
public const int SRV_COL_TYPE_INTEGER = 3;
public const int SRV_COL_TYPE_SMALLINT = 4;
public const int SRV_COL_TYPE_DATE = 5;
public const int SRV_COL_TYPE_LOGICAL = 6;
public const int SRV_COL_TYPE_FLOAT = 8;
public const int SRV_COL_TYPE_FIXED_LEN_STRING = 16;
public const int SRV_COL_TYPE_BIN_STRING = 17;
//----------------------------------------------------------------------------
// Server_DriverInfo() Attr defines
//----------------------------------------------------------------------------
public const int SRV_DRV_INFO_NAME = 1;
public const int SRV_DRV_INFO_NAME_LIST = 2;
public const int SRV_DRV_DATA_SOURCE = 3;
//----------------------------------------------------------------------------
// Server_ConnectInfo() Attr defines
//----------------------------------------------------------------------------
public const int SRV_CONNECT_INFO_DRIVER_NAME = 1;
public const int SRV_CONNECT_INFO_DB_NAME = 2;
public const int SRV_CONNECT_INFO_SQL_USER_ID = 3;
public const int SRV_CONNECT_INFO_DS_NAME = 4;
public const int SRV_CONNECT_INFO_QUOTE_CHAR = 5;
//----------------------------------------------------------------------------
// Fetch Directions (used by ServerFetch function in some code libraries)
//----------------------------------------------------------------------------
public const int SRV_FETCH_NEXT = -1;
public const int SRV_FETCH_PREV = -2;
public const int SRV_FETCH_FIRST = -3;
public const int SRV_FETCH_LAST = -4;
//============================================================================
// SessionInfo() defines
//============================================================================
public const int SESSION_INFO_COORDSYS_CLAUSE = 1;
public const int SESSION_INFO_DISTANCE_UNITS = 2;
public const int SESSION_INFO_AREA_UNITS = 3;
public const int SESSION_INFO_PAPER_UNITS = 4;
//============================================================================
// Set Next Document Style defines
//============================================================================
public const int WIN_STYLE_STANDARD = 0;
public const int WIN_STYLE_CHILD = 1;
public const int WIN_STYLE_POPUP_FULLCAPTION = 2;
public const int WIN_STYLE_POPUP = 3;
//============================================================================
// StringCompare() defines
//============================================================================
public const int STR_LT = -1;
public const int STR_GT = 1;
public const int STR_EQ = 0;
//============================================================================
// StyleAttr() defines
//============================================================================
public const int PEN_WIDTH = 1;
public const int PEN_PATTERN = 2;
public const int PEN_COLOR = 4;
public const int PEN_INDEX = 5;
public const int PEN_INTERLEAVED = 6;
public const int BRUSH_PATTERN = 1;
public const int BRUSH_FORECOLOR = 2;
public const int BRUSH_BACKCOLOR = 3;
public const int FONT_NAME = 1;
public const int FONT_STYLE = 2;
public const int FONT_POINTSIZE = 3;
public const int FONT_FORECOLOR = 4;
public const int FONT_BACKCOLOR = 5;
public const int SYMBOL_CODE = 1;
public const int SYMBOL_COLOR = 2;
public const int SYMBOL_POINTSIZE = 3;
public const int SYMBOL_ANGLE = 4;
public const int SYMBOL_FONT_NAME = 5;
public const int SYMBOL_FONT_STYLE = 6;
public const int SYMBOL_KIND = 7;
public const int SYMBOL_CUSTOM_NAME = 8;
public const int SYMBOL_CUSTOM_STYLE = 9;
//----------------------------------------------------------------------------
// Symbol kinds returned by StyleAttr() for SYMBOL_KIND
//----------------------------------------------------------------------------
public const int SYMBOL_KIND_VECTOR = 1;
public const int SYMBOL_KIND_FONT = 2;
public const int SYMBOL_KIND_CUSTOM = 3;
//============================================================================
// SystemInfo() defines
//============================================================================
public const int SYS_INFO_PLATFORM = 1;
public const int SYS_INFO_APPVERSION = 2;
public const int SYS_INFO_MIVERSION = 3;
public const int SYS_INFO_RUNTIME = 4;
public const int SYS_INFO_CHARSET = 5;
public const int SYS_INFO_COPYPROTECTED = 6;
public const int SYS_INFO_APPLICATIONWND = 7;
public const int SYS_INFO_DDESTATUS = 8;
public const int SYS_INFO_MAPINFOWND = 9;
public const int SYS_INFO_NUMBER_FORMAT = 10;
public const int SYS_INFO_DATE_FORMAT = 11;
public const int SYS_INFO_DIG_INSTALLED = 12;
public const int SYS_INFO_DIG_MODE = 13;
public const int SYS_INFO_MIPLATFORM = 14;
public const int SYS_INFO_MDICLIENTWND = 15;
public const int SYS_INFO_PRODUCTLEVEL = 16;
public const int SYS_INFO_APPIDISPATCH = 17;
//----------------------------------------------------------------------------
// Platform, returned by SystemInfo() for SYS_INFO_PLATFORM
//----------------------------------------------------------------------------
public const int PLATFORM_SPECIAL = 0;
public const int PLATFORM_WIN = 1;
public const int PLATFORM_MAC = 2;
public const int PLATFORM_MOTIF = 3;
public const int PLATFORM_X11 = 4;
public const int PLATFORM_XOL = 5;
//----------------------------------------------------------------------------
// Version, returned by SystemInfo() for SYS_INFO_MIPLATFORM
//----------------------------------------------------------------------------
public const int MIPLATFORM_SPECIAL = 0;
public const int MIPLATFORM_WIN16 = 1;
public const int MIPLATFORM_WIN32 = 2;
public const int MIPLATFORM_POWERMAC = 3;
public const int MIPLATFORM_MAC68K = 4;
public const int MIPLATFORM_HP = 5;
public const int MIPLATFORM_SUN = 6;
//============================================================================
// TableInfo() defines
//============================================================================
public const int TAB_INFO_NAME = 1;
public const int TAB_INFO_NUM = 2;
public const int TAB_INFO_TYPE = 3;
public const int TAB_INFO_NCOLS = 4;
public const int TAB_INFO_MAPPABLE = 5;
public const int TAB_INFO_READONLY = 6;
public const int TAB_INFO_TEMP = 7;
public const int TAB_INFO_NROWS = 8;
public const int TAB_INFO_EDITED = 9;
public const int TAB_INFO_FASTEDIT = 10;
public const int TAB_INFO_UNDO = 11;
public const int TAB_INFO_MAPPABLE_TABLE = 12;
public const int TAB_INFO_USERMAP = 13;
public const int TAB_INFO_USERBROWSE = 14;
public const int TAB_INFO_USERCLOSE = 15;
public const int TAB_INFO_USEREDITABLE = 16;
public const int TAB_INFO_USERREMOVEMAP = 17;
public const int TAB_INFO_USERDISPLAYMAP = 18;
public const int TAB_INFO_TABFILE = 19;
public const int TAB_INFO_MINX = 20;
public const int TAB_INFO_MINY = 21;
public const int TAB_INFO_MAXX = 22;
public const int TAB_INFO_MAXY = 23;
public const int TAB_INFO_SEAMLESS = 24;
public const int TAB_INFO_COORDSYS_MINX = 25;
public const int TAB_INFO_COORDSYS_MINY = 26;
public const int TAB_INFO_COORDSYS_MAXX = 27;
public const int TAB_INFO_COORDSYS_MAXY = 28;
public const int TAB_INFO_COORDSYS_CLAUSE = 29;
public const int TAB_INFO_COORDSYS_NAME = 30;
public const int TAB_INFO_NREFS = 31;
//----------------------------------------------------------------------------
// Table type defines, returned by TableInfo() for TAB_INFO_TYPE
//----------------------------------------------------------------------------
public const int TAB_TYPE_BASE = 1;
public const int TAB_TYPE_RESULT = 2;
public const int TAB_TYPE_VIEW = 3;
public const int TAB_TYPE_IMAGE = 4;
public const int TAB_TYPE_LINKED = 5;
public const int TAB_TYPE_WMS = 6;
public const int TAB_TYPE_WFS = 7;
//============================================================================
// WindowInfo() defines
//============================================================================
public const int WIN_INFO_NAME = 1;
public const int WIN_INFO_TYPE = 3;
public const int WIN_INFO_WIDTH = 4;
public const int WIN_INFO_HEIGHT = 5;
public const int WIN_INFO_X = 6;
public const int WIN_INFO_Y = 7;
public const int WIN_INFO_TOPMOST = 8;
public const int WIN_INFO_STATE = 9;
public const int WIN_INFO_TABLE = 10;
public const int WIN_INFO_LEGENDS_MAP = 10;
public const int WIN_INFO_OPEN = 11;
public const int WIN_INFO_WND = 12;
public const int WIN_INFO_WINDOWID = 13;
public const int WIN_INFO_WORKSPACE = 14;
public const int WIN_INFO_CLONEWINDOW = 15;
public const int WIN_INFO_SYSMENUCLOSE = 16;
public const int WIN_INFO_AUTOSCROLL = 17;
public const int WIN_INFO_SMARTPAN = 18;
public const int WIN_INFO_SNAPMODE = 19;
public const int WIN_INFO_SNAPTHRESHOLD = 20;
public const int WIN_INFO_PRINTER_NAME = 21;
public const int WIN_INFO_PRINTER_ORIENT = 22;
public const int WIN_INFO_PRINTER_COPIES = 23;
public const int WIN_INFO_PRINTER_PAPERSIZE = 24;
public const int WIN_INFO_PRINTER_LEFTMARGIN = 25;
public const int WIN_INFO_PRINTER_RIGHTMARGIN = 26;
public const int WIN_INFO_PRINTER_TOPMARGIN = 27;
public const int WIN_INFO_PRINTER_BOTTOMMARGIN = 28;
public const int WIN_INFO_PRINTER_BORDER = 29;
public const int WIN_INFO_PRINTER_TRUECOLOR = 30;
public const int WIN_INFO_PRINTER_DITHER = 31;
public const int WIN_INFO_PRINTER_METHOD = 32;
public const int WIN_INFO_PRINTER_TRANSPRASTER = 33;
public const int WIN_INFO_PRINTER_TRANSPVECTOR = 34;
public const int WIN_INFO_EXPORT_BORDER = 35;
public const int WIN_INFO_EXPORT_TRUECOLOR = 36;
public const int WIN_INFO_EXPORT_DITHER = 37;
public const int WIN_INFO_EXPORT_TRANSPRASTER = 38;
public const int WIN_INFO_EXPORT_TRANSPVECTOR = 39;
public const int WIN_INFO_PRINTER_SCALE_PATTERNS = 40;
//----------------------------------------------------------------------------
// Window types, returned by WindowInfo() for WIN_INFO_TYPE
//----------------------------------------------------------------------------
public const int WIN_MAPPER = 1;
public const int WIN_BROWSER = 2;
public const int WIN_LAYOUT = 3;
public const int WIN_GRAPH = 4;
public const int WIN_BUTTONPAD = 19;
public const int WIN_TOOLBAR = 25;
public const int WIN_CART_LEGEND = 27;
public const int WIN_3DMAP = 28;
public const int WIN_HELP = 1001;
public const int WIN_MAPBASIC = 1002;
public const int WIN_MESSAGE = 1003;
public const int WIN_RULER = 1007;
public const int WIN_INFO = 1008;
public const int WIN_LEGEND = 1009;
public const int WIN_STATISTICS = 1010;
public const int WIN_MAPINFO = 1011;
//----------------------------------------------------------------------------
// Version 2 window types no longer used in version 3 or later versions
//----------------------------------------------------------------------------
public const int WIN_TOOLPICKER = 1004;
public const int WIN_PENPICKER = 1005;
public const int WIN_SYMBOLPICKER = 1006;
//----------------------------------------------------------------------------
// Window states, returned by WindowInfo() for WIN_INFO_STATE
//----------------------------------------------------------------------------
public const int WIN_STATE_NORMAL = 0;
public const int WIN_STATE_MINIMIZED = 1;
public const int WIN_STATE_MAXIMIZED = 2;
//----------------------------------------------------------------------------
// Print orientation, returned by WindowInfo() for WIN_INFO_PRINTER_ORIENT
//----------------------------------------------------------------------------
public const int WIN_PRINTER_PORTRAIT = 1;
public const int WIN_PRINTER_LANDSCAPE = 2;
//============================================================================
// end of MAPBASIC.DEF
//============================================================================
//============================================================================
// MapInfo version 7.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
//----------------------------------------------------------------------------
public const int M_FILE_NEW = 101;
public const int M_FILE_OPEN = 102;
public const int M_FILE_OPEN_WMS = 118;
public const int M_FILE_OPEN_WFS = 119;
public const int M_FILE_OPEN_ODBC_CONN = 125;
public const int M_FILE_CLOSE = 103;
public const int M_FILE_CLOSE_ALL = 104;
public const int M_FILE_CLOSE_ODBC = 124;
public const int M_FILE_SAVE = 105;
public const int M_FILE_SAVE_COPY_AS = 106;
public const int M_FILE_SAVE_QUERY = 117;
public const int M_FILE_SAVE_WORKSPACE = 109;
public const int M_FILE_SAVE_WINDOW_AS = 609;
public const int M_FILE_REVERT = 107;
public const int M_FILE_PAGE_SETUP = 111;
public const int M_FILE_PRINT = 112;
public const int M_FILE_EXIT = 113;
//----------------------------------------------------------------------------
// Edit menu
//----------------------------------------------------------------------------
public const int M_EDIT_UNDO = 201;
public const int M_EDIT_CUT = 202;
public const int M_EDIT_COPY = 203;
public const int M_EDIT_PASTE = 204;
public const int M_EDIT_CLEAR = 205;
public const int M_EDIT_CLEAROBJ = 206;
public const int M_EDIT_RESHAPE = 1601;
public const int M_EDIT_NEW_ROW = 702;
public const int M_EDIT_GETINFO = 207;
//----------------------------------------------------------------------------
// Tools menu
//----------------------------------------------------------------------------
public const int M_TOOLS_CRYSTAL_REPORTS_NEW = 1802;
public const int M_TOOLS_CRYSTAL_REPORTS_OPEN = 1803;
public const int M_TOOLS_RUN = 110;
public const int M_TOOLS_TOOL_MANAGER = 1801;
//----------------------------------------------------------------------------
// Objects menu
//----------------------------------------------------------------------------
public const int M_OBJECTS_SET_TARGET = 1610;
public const int M_OBJECTS_CLEAR_TARGET = 1611;
public const int M_OBJECTS_COMBINE = 1605;
public const int M_OBJECTS_DISAGG = 1621;
public const int M_OBJECTS_BUFFER = 1606;
public const int M_OBJECTS_CONVEX_HULL = 1616;
public const int M_OBJECTS_ENCLOSE = 1617;
public const int M_OBJECTS_VORONOI = 1622;
public const int M_OBJECTS_SPLIT = 1612;
public const int M_OBJECTS_ERASE = 1613;
public const int M_OBJECTS_ERASE_OUT = 1614;
public const int M_OBJECTS_POLYLINE_SPLIT = 1623;
public const int M_OBJECTS_POLYLINE_SPLIT_AT_NODE = 1626;
public const int M_OBJECTS_OVERLAY = 1615;
public const int M_OBJECTS_CHECK_REGIONS = 1618;
public const int M_OBJECTS_CLEAN = 1619;
public const int M_OBJECTS_SNAP = 1620;
public const int M_OBJECTS_OFFSET = 1624;
public const int M_OBJECTS_ROTATE = 1625;
public const int M_OBJECTS_SMOOTH = 1602;
public const int M_OBJECTS_UNSMOOTH = 1603;
public const int M_OBJECTS_CVT_PGON = 1607;
public const int M_OBJECTS_CVT_PLINE = 1604;
//----------------------------------------------------------------------------
// Query menu
//----------------------------------------------------------------------------
public const int M_QUERY_SELECT = 301;
public const int M_QUERY_SQLQUERY = 302;
public const int M_QUERY_SELECTALL = 303;
public const int M_QUERY_INVERTSELECT = 311;
public const int M_QUERY_UNSELECT = 304;
public const int M_QUERY_FIND = 305;
public const int M_QUERY_FIND_SELECTION = 306;
public const int M_QUERY_CALC_STATISTICS = 309;
//----------------------------------------------------------------------------
// Table, Maintenance, and Raster menus
//----------------------------------------------------------------------------
public const int M_TABLE_UPDATE_COLUMN = 405;
public const int M_TABLE_APPEND = 411;
public const int M_TABLE_GEOCODE = 407;
public const int M_TABLE_CREATE_POINTS = 408;
public const int M_TABLE_MERGE_USING_COLUMN = 406;
public const int M_TABLE_BUFFER = 419;
public const int M_TABLE_VORONOI = 420;
public const int M_TABLE_IMPORT = 401;
public const int M_TABLE_EXPORT = 402
;
public const int M_TABLE_MODIFY_STRUCTURE = 404;
public const int M_TABLE_DELETE = 409;
public const int M_TABLE_RENAME = 410;
public const int M_TABLE_PACK = 403;
public const int M_TABLE_MAKEMAPPABLE = 415;
public const int M_TABLE_CHANGESYMBOL = 418;
public const int M_TABLE_UNLINK = 416;
public const int M_TABLE_REFRESH = 417
;
public const int M_TABLE_RASTER_STYLE = 414;
public const int M_TABLE_RASTER_REG = 413;
public const int M_TOOLS_RASTER_REG = 1730;
public const int M_TABLE_WMS_PROPS = 421;
public const int M_TABLE_WFS_REFRESH = 422;
//----------------------------------------------------------------------------
// Options and Preferences menus
//----------------------------------------------------------------------------
public const int M_FORMAT_PICK_LINE = 501;
public const int M_FORMAT_PICK_FILL = 502;
public const int M_FORMAT_PICK_SYMBOL = 503;
public const int M_FORMAT_PICK_FONT = 504;
public const int M_WINDOW_BUTTONPAD = 605;
public const int M_WINDOW_LEGEND = 606;
public const int M_WINDOW_STATISTICS = 607;
public const int M_WINDOW_MAPBASIC = 608;
public const int M_WINDOW_STATUSBAR = 616;
public const int M_FORMAT_CUSTOM_COLORS = 617;
public const int M_EDIT_PREFERENCES = 208;
public const int M_EDIT_PREFERENCES_SYSTEM = 210;
public const int M_EDIT_PREFERENCES_MAP = 212;
public const int M_EDIT_PREFERENCES_LEGEND = 215;
public const int M_EDIT_PREFERENCES_FILE = 211;
public const int M_EDIT_PREFERENCES_COUNTRY = 213;
public const int M_EDIT_PREFERENCES_PATH = 214;
public const int M_EDIT_PREFERENCES_OUTPUT = 216;
public const int M_EDIT_PREFERENCES_PRINTER = 217;
public const int M_EDIT_PREFERENCES_STYLES = 218;
//----------------------------------------------------------------------------
// Window menu
//----------------------------------------------------------------------------
public const int M_WINDOW_BROWSE = 601;
public const int M_WINDOW_MAP = 602;
public const int M_WINDOW_GRAPH = 603;
public const int M_WINDOW_LAYOUT = 604;
public const int M_WINDOW_REDISTRICT = 615;
public const int M_WINDOW_REDRAW = 610;
public const int M_WINDOW_TILE = 611;
public const int M_WINDOW_CASCADE = 612;
public const int M_WINDOW_ARRANGEICONS = 613;
public const int M_WINDOW_MORE = 614;
public const int M_WINDOW_FIRST = 620;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Note: the 2nd through 80th windows can be accessed as (M_WINDOW_FIRST+i-1)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//----------------------------------------------------------------------------
// Help menu
//----------------------------------------------------------------------------
public const int M_HELP_CONTEXTSENSITIVE = 1201;
public const int M_HELP_CONTENTS = 1202;
public const int M_HELP_SEARCH = 1203;
public const int M_HELP_USE_HELP = 1204;
public const int M_HELP_ABOUT = 1205;
public const int M_HELP_HELPMODE = 1206;
public const int M_HELP_TECHSUPPORT = 1208;
public const int M_HELP_CONNECT_MIFORUM = 1209;
public const int M_HELP_MAPINFO_WWW = 1210;
public const int M_HELP_MAPINFO_WWW_STORE = 1211;
public const int M_HELP_CHECK_FOR_UPDATE = 1212;
public const int M_HELP_MAPINFO_WWW_TUTORIAL = 1213;
//----------------------------------------------------------------------------
// Browse menu
//----------------------------------------------------------------------------
public const int M_BROWSE_PICK_FIELDS = 704;
public const int M_BROWSE_OPTIONS = 703;
//----------------------------------------------------------------------------
// Map menu
//----------------------------------------------------------------------------
public const int M_MAP_LAYER_CONTROL = 801;
public const int M_MAP_CREATE_3DMAP = 817;
public const int M_MAP_CREATE_PRISMMAP = 818;
public const int M_MAP_THEMATIC = 307;
public const int M_MAP_MODIFY_THEMATIC = 308;
public const int M_MAP_CREATE_LEGEND = 816;
public const int M_MAP_CHANGE_VIEW = 805;
public const int M_MAP_CLONE_MAPPER = 811;
public const int M_MAP_PREVIOUS = 806;
public const int M_MAP_ENTIRE_LAYER = 807;
public const int M_MAP_CLEAR_CUSTOM_LABELS = 814;
public const int M_MAP_SAVE_COSMETIC = 809;
public const int M_MAP_CLEAR_COSMETIC = 810;
public const int M_MAP_SET_CLIP_REGION = 812;
public const int M_MAP_CLIP_REGION_ONOFF = 813;
public const int M_MAP_SETUPDIGITIZER = 803;
public const int M_MAP_OPTIONS = 802;
//----------------------------------------------------------------------------
// Layout menu
//----------------------------------------------------------------------------
public const int M_LAYOUT_CHANGE_VIEW = 902;
public const int M_LAYOUT_ACTUAL = 903;
public const int M_LAYOUT_ENTIRE = 904;
public const int M_LAYOUT_PREVIOUS = 905;
public const int M_LAYOUT_BRING2FRONT = 906;
public const int M_LAYOUT_SEND2BACK = 907;
public const int M_LAYOUT_ALIGN = 908;
public const int M_LAYOUT_DROPSHADOWS = 909;
public const int M_LAYOUT_DISPLAYOPTIONS = 901;
public const int M_LAYOUT_AUTOSCROLL_ONOFF = 910;
//----------------------------------------------------------------------------
// Graph menu
//----------------------------------------------------------------------------
public const int M_GRAPH_TYPE = 1001;
public const int M_GRAPH_LABEL_AXIS = 1002;
public const int M_GRAPH_VALUE_AXIS = 1003;
public const int M_GRAPH_SERIES = 1004;
//----------------------------------------------------------------------------
// New Graph menu
//----------------------------------------------------------------------------
public const int M_GRAPH_FORMATING = 2007;
public const int M_GRAPH_GENERAL_OPTIONS = 2002;
public const int M_GRAPH_SERIES_OPTIONS = 2003;
public const int M_GRAPH_GRID_SCALES = 2004;
public const int M_GRAPH_TITLES = 2005;
public const int M_GRAPH_3D_VIEWING_ANGLE = 2006;
public const int M_GRAPH_SAVE_AS_TEMPLATE = 2008;
//----------------------------------------------------------------------------
// MapBasic menu
//----------------------------------------------------------------------------
public const int M_MAPBASIC_CLEAR = 1101;
public const int M_MAPBASIC_SAVECONTENTS = 1102;
//----------------------------------------------------------------------------
// Redistrict menu
//----------------------------------------------------------------------------
public const int M_REDISTRICT_ASSIGN = 705;
public const int M_REDISTRICT_TARGET = 706;
public const int M_REDISTRICT_ADD = 707;
public const int M_REDISTRICT_DELETE = 708;
public const int M_REDISTRICT_OPTIONS = 709;
//----------------------------------------------------------------------------
// Legend menu
//----------------------------------------------------------------------------
public const int M_LEGEND_PROPERTIES = 1901;
public const int M_LEGEND_REFRESH = 1902;
public const int M_LEGEND_ADD_FRAMES = 1903;
public const int M_LEGEND_DELETE = 1904;
//----------------------------------------------------------------------------
// 3DMap menu
//----------------------------------------------------------------------------
public const int M_3DMAP_VIEW_ENTIRE_GRID = 2101;
public const int M_3DMAP_PROPERTIES = 2102;
public const int M_3DMAP_REFRESH_GRID_TEXTURE = 2103;
public const int M_3DMAP_WIREFRAME = 2104;
public const int M_3DMAP_CLONE_VIEW = 2105;
public const int M_3DMAP_PREVIOUS_VIEW = 2106;
public const int M_3DMAP_VIEWPOINT_CONTROL = 2107;
//----------------------------------------------------------------------------
// Main Buttonpad
//----------------------------------------------------------------------------
public const int M_TOOLS_SELECTOR = 1701;
public const int M_TOOLS_SEARCH_RECT = 1722;
public const int M_TOOLS_SEARCH_RADIUS = 1703;
public const int M_TOOLS_SEARCH_BOUNDARY = 1704;
public const int M_TOOLS_EXPAND = 1705;
public const int M_TOOLS_SHRINK = 1706;
public const int M_TOOLS_RECENTER = 1702;
public const int M_TOOLS_PNT_QUERY = 1707;
public const int M_TOOLS_HOTLINK = 1736;
public const int M_TOOLS_LABELER = 1708;
public const int M_TOOLS_DRAGWINDOW = 1734;
public const int M_TOOLS_RULER = 1710;
//----------------------------------------------------------------------------
// Drawing Buttonpad
//----------------------------------------------------------------------------
public const int M_TOOLS_POINT = 1711;
public const int M_TOOLS_LINE = 1712;
public const int M_TOOLS_POLYLINE = 1713;
public const int M_TOOLS_ARC = 1716;
public const int M_TOOLS_POLYGON = 1714;
public const int M_TOOLS_ELLIPSE = 1715;
public const int M_TOOLS_RECTANGLE = 1717;
public const int M_TOOLS_ROUNDEDRECT = 1718;
public const int M_TOOLS_TEXT = 1709;
public const int M_TOOLS_FRAME = 1719;
public const int M_TOOLS_ADD_NODE = 1723;
//----------------------------------------------------------------------------
// DBMS Buttonpad
// -- most DBMS buttons defined under M_TABLE_{...} except for this one:
//----------------------------------------------------------------------------
public const int M_DBMS_OPEN_ODBC = 116;
//----------------------------------------------------------------------------
// Menu and ButtonPad items that do not appear in the standard menus
//----------------------------------------------------------------------------
public const int M_TOOLS_MAPBASIC = 1720;
public const int M_TOOLS_SEARCH_POLYGON = 1733;
//----------------------------------------------------------------------------
// Constants whose names have changed: these are left for backward
// compatibility with existing programs, since they were included in previous
// versions of MAPBASIC.BAS.
//----------------------------------------------------------------------------
public const int M_FILE_RUN = 110;
public const int M_FILE_OPEN_ODBC = 116;
public const int M_ANALYZE_SELECT = 301;
public const int M_ANALYZE_SQLQUERY = 302;
public const int M_ANALYZE_SELECTALL = 303;
public const int M_ANALYZE_INVERTSELECT = 311;
public const int M_ANALYZE_UNSELECT = 304;
public const int M_ANALYZE_FIND = 305;
public const int M_ANALYZE_FIND_SELECTION = 306;
public const int M_ANALYZE_CALC_STATISTICS = 309;
//----------------------------------------------------------------------------
// Obsolete menu items that are not used in the current version of MapInfo
//----------------------------------------------------------------------------
public const int M_FILE_ADD_WORKSPACE = 108; //PART OF M_FILE_OPEN
public const int M_SENDMAIL_CURRENTWINDOW = 114; //NO LONGER IN MENU SYSTEM
public const int M_SENDMAIL_WORKSPACE = 115; //NO LONGER IN MENU SYSTEM
public const int M_MAP_AUTOSCROLL_ONOFF = 815; //TOGGLES CHECK IN M_MAP_OPTIONS
//============================================================================
// end of MENU.DEF
//============================================================================
}
}