Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I convert DLU to pixel?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01151255
Message ID:
01153021
Views:
54
Mike,

Can you explain how that relates to the formula?
horz pixels == 2 * horz dialog units * (average char width of dialog font
/ average char width of system font)
vert pixels == 2 * vert dialog units * (average char height of dialog font
/ average char height of system font)

I have used fontmetric to get the average width as follows:
lnVal = FONTMETRIC(6,'Tahoma',8) && LnVal = 5 in this case

But I dont know if this values relates to the dialogue font or the system font.
Stuart Reid

True nobility lies not in being superior to another man, but in being superior to one’s previous self
Previous
Reply
Map
View

Click here to load this message in the networking platform