Purpose
Opens or displays a window. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Open Window window_name
window_name is a string representing a window name (for example, Ruler) or window code (for example, WIN_RULER); codes are defined in MAPBASIC.DEF.
Description
The Open Window statement displays an MapInfo Pro window. For example, the following statement displays the statistics window, as if the user had chosen Statistics on the HOME tab from the group.
Open Window Statistics
The following table lists the available window_name values:
value | Window Description |
---|---|
Help | The Help window (WIN_HELP). |
Info | The Info Tool window (WIN_INFO). |
LayerControl | The Layer Control window (WIN_LAYER_CONTROL). In an integrated mapping application, this refers to the modal version. |
Legend | The Theme Legend window (WIN_LEGEND). |
MapBasic | The MapBasic window (WIN_MAPBASIC). |
Message | The Message window used by the Print statement (WIN_MESSAGE). |
MoveMapTo | The Move Map To window (WIN_MOVE_MAP_TO). |
Ruler | The Ruler tool window (WIN_RULER). |
Statistics | The Statistics window (WIN_STATISTICS). |
TableList | The Table List window (WIN_TABLE_LIST). In an integrated mapping application, this refers to the modal version. |
You cannot open a document window (Map, Browse, Graph, Layout) through the Open Window statement. There is a separate statement for opening each type of document window (see the Map statement, Browse statement, Layout statement, and Create Redistricter statement).
See Also:
Close Window statement, Print statement, Set Window statement