Working with IStaticText Parts

The following tasks are associated with using an IStaticText* part in visual composition. Tasks that are common to many parts are described in related topics.

Defining a label
To define static text as a label for a control, do either of the following:

Defining instructions
To define static text as instructions for a field, do the following:
  1. To extend instructions to multiple lines, set the alignment property in the IStaticText* property sheet. Select the topLeftWrapped choice in the value column.

  2. Set the text property in the IStaticText* property sheet. Enter the instructions in the value column.

Displaying the date
To show the date, do the following:
  1. Add an IDate* part to the free-form surface.

  2. Open the IDate* pop-up menu and select the Tear-off attribute choice.

  3. Select the today attribute. A variable for the today attribute is added to the free-form surface and connected to the IDate* part.

  4. Connect the asString attribute of the today variable to the text attribute of the IStaticText* part.


Related procedures
Common Tasks for Control Parts
Setting Part Style Properties
Setting Part Color Properties
Setting Part Font Properties
Setting Part Handlers Properties
Setting Part Framing Properties
Editing Part Labels Directly
Working with VisualAge User Interface Parts

Related references
IStaticText
Property Settings -- IStaticText
Portability -- IStaticText