INFORMIX
Visionary User's Guide
Appendix A: Object Properties Reference
Home Contents Index Master Index New Book

Text

Displays text, with or without word-wrapping, in an invisible bounding frame. To format line breaks in text, insert +newline+ in the Text property where you want the break to occur. Here is an example of the syntax you would use to display text in two lines:

This syntax produces the following result:

Valid properties for Text objects are described in the following table.

Property Data Type Description

Text

String

Text to be displayed.

Location

Point

Specifies x, y coordinates of the text anchor point, LocationAnchor, relative to the scene, layout, or alignment panel.

LocationAnchor

Enum

Specifies a reference point placed at the specified location. Can be one of the following values:

Width

Numeric

Sets the width of the text.

Height

Numeric

Sets the height of the text.

AutoWidth

Boolean

Automatically sets the width of the text.

AutoHeight

Boolean

Automatically sets the height of the the text.

HorizAlign

Enum

Specifies the relative horizontal alignment of text lines when embedded carriage returns create multiple lines of text. Can be one of the following values:

VertAlign

Enum

Specifies the relative vertical alignment of text lines. Can be one of the following values:

LeftMargin

Numeric

Specifies the size of the internal gap between frame and text.

RightMargin

Numeric

Specifies the size of the internal gap between frame and text.

TopMargin

Numeric

Specifies the size of the internal gap between frame and text.

BottomMargin

Numeric

Specifies the size of the internal gap between frame and text.

When you set properties for Text objects, you must also specify properties for Font and Frame objects. The association between a Text object and supporting objects is represented in Figure A-15.

Figure A-15
Text Objects

The properties of child objects of the Text object are described in the following sections.

Object Properties

Font

See "Font".

Frame

See "Frame".




Visionary User's Guide, version 1.0
Copyright © 1998, Informix Software, Inc. All rights reserved.