Control StaticText 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 label to a dialog box.

Syntax

Control StaticText 
	[ Position x, y ] 
	[ Width w ] [ Height h ] 
	[ ID control_ID ] 
	[ Title title_string ] 
	[ Hide ] 

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

w specifies the control's width, in dialog box units.

h specifies the control's height, in dialog box units.

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

title_string is a text string to appear in the dialog box as a label.

The Hide keyword makes the control hidden initially.

Description

If you want the text string to wrap down onto multiple lines, include the optional Width and Height clauses. If you omit the Width and Height clauses, the static text control shows only one line of text.

Example

Control StaticText 
	Title "Enter map title:" 
	Position 5, 10

See Also:

Alter Control statement, Dialog statement