Open Window statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

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.
Note: The window IDs for Table List, Layer Control, and Move Map To windows are ignored by the Set Window statement, WindowInfo() function, and WindowID() function.

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