Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put form's caption into the center of the title bar
Message
From
22/02/2007 13:52:07
 
 
To
22/02/2007 13:39:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01198086
Message ID:
01198089
Views:
9
>Hi all
>I want to centerlize my form caption.
>I got very huge strange by the following command:
>
thisform.caption=space((thisform.width/2)-len(thisform.caption)/2)+thisform.caption
>Help please...

The width is measured in pixels (assumning default ScaleMode property). You could probably use FontMetric to calculate the required number of spaces based on the number of pixels
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform