Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Formatting Field Labels
Message
 
To
07/04/2000 01:15:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00356675
Message ID:
00356682
Views:
15
>How can I drag a field from the data environment onto a form and have its field name formatted with a different font and a colon placed at the end of the label? TIA

Rixon,

The label put with the field is controlled with the Field Mapping (on the Tools Options page found in the Tools Menu.

You can create a label class that has this in its Init event;
* Label class' Init event
This.Caption = This.Caption + ":"
Then set the label class' FontName property to the font you want and you may also need to set teh FontSixe property as well.

This label class will not show the : in the designer but it will have the : when the form is run.

Once you have completed the label class and named and saved it in a class library you can go to the Tools-Options dialog, select the Field Mapping page. Scroll down until you find the Lable entry, click it and then click the Modify button. In the dialog put the name of your label class and the name and path to the class library.
Previous
Reply
Map
View

Click here to load this message in the networking platform