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:
- On the composition surface, directly edit the
part text.
- In the part property sheet, enter the text in the
value column of the text property.
- Defining instructions
- To define static text as instructions for a field, do the
following:
- To extend instructions to multiple lines, set the
alignment property in the IStaticText*
property sheet. Select the topLeftWrapped
choice in the value column.
- 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:
- Add an IDate* part to the free-form surface.
- Open the IDate* pop-up menu and select the Tear-off
attribute choice.
- Select the today attribute. A variable for
the today attribute is added to the
free-form surface and connected to the IDate*
part.
- Connect the asString attribute of the today
variable to the text attribute of the
IStaticText* part.
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
IStaticText
Property Settings --
IStaticText
Portability --
IStaticText