Label Object
Parents Children Properties Methods Events
Purpose: Displays static text.

Description

This object displays a text label, a number, a date or a time value.

If FieldType is empty, the Label displays the text defined by its Caption property. If the Caption property contains one or more linefeed characters (⎕UCS 10) the Label becomes a multi-line Label which is top-left justified and automatically wraps on white-space characters (such as space and tab) to fit in the width provided.

If FieldType is 'Numeric', 'LongNumeric', 'Currency', 'Date', 'LongDate', or 'Time' the Label converts and formats the number defined by its Value property and displays this instead. See FieldType property for details.

The Border property determines whether or not the label has a border. A value of 0 means no border (the default). A value of 1 means that a 1-pixel border is drawn around the label.

By default, the value of the EdgeStyle property for a Label is 'None' and the value of BCol is 0 which is normally white, or grey if the parent object has a 3-dimensional appearance. You can change its appearance by setting EdgeStyle and/or BCol to different values.