AddressType  AllowEdit

Chapter 3: Property Descriptions and Usage

Alignment

Applies to

Controls that display text

Description

For most controls that display text, the alignment property specifies the alignment of all the text in the control. Text can be centered, left aligned, or right aligned.

Usage


In a painter

StepsTo specify text alignment for controls other than RichTextEdit:

  1. On the General page of the control’s Properties view, select an alignment from the Alignment drop-down list, or click the Left, Center, and Right alignment buttons in the StyleBar. Use the StyleBar to set the alignment for several selected objects at once.


In scripts

The datatype of the Alignment property is the Alignment enumerated datatype. It has four values: Center!, Left!, and Right! apply to all controls with text, Justify! applies only to RichTextEdit controls.

For example, the following line specifies center alignment for a MultiLineEdit control:

mle_1.Alignment = Center!





Copyright © 2004. Sybase Inc. All rights reserved. AllowEdit

View this book as PDF