Control DocumentWindow clause - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Part of a Dialog statement; adds a document window control to a dialog box which can be re-parented for integrated mapping.

Syntax

Control DocumentWindow 
	[ Position x, y ] 
	[ Width w ] [ Height h ] 
	[ ID control_ID ] 
	[ Disable ] [ Hide ] 

x, y specifies the control's position in dialog box units.

w specifies the width of the control in dialog units; default width is 100.

h specifies the height of the control in dialog units; default height is 100.

control_ID is an integer; cannot be the same as the ID of another control in the dialog box.

Disable grays out the control initially.

Hide initially hides the control.
Note: This clause works only in the 32-bit versions of MapInfo Pro.

Description

If a Dialog statement includes a Control DocumentWindow clause, the dialog box includes a document window control that can be re-parented using the Set Next Document statement.