Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to position text
Message
From
02/06/2004 14:32:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to position text
Miscellaneous
Thread ID:
00909351
Message ID:
00909351
Views:
38
I need to position some text in a field based on it's aligment, font and font size. For example, I want to place "Universal" at the left and "Thread" at the right, using Arial 10 points and with a text lenght of 3.5". The result is not printed, it is to be stored in a field.

The result should look like this:

|<---------- 3.5" ---------->|
Universal Thread

I need to insert spaces between the words to align them, but I can't find any function that will give me the real length in inches of a given text. TXTWIDTH and FONTMETRIC works in pixels. Any function to convert from pixels to inches?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform