While scratching on the site I came across
you email addy under the blogs section.
I'm trying to keep my apps as close to a windows look as possbile in terms
of fonts used, font sizes, layout etc. I read on MSDN that the standard
size for example a
buttons is 14 dialogue units by 50 dialogue units. I want to convert those
units to pixels for use in VFP. I managed to get the following formula to
convert to
pixels:
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 value is the dialogue font or the system font. How
do I
use this formula correctly?
What standard do you guys uses?
I would really appreciate some guidance here.
Regards,
stuart
-------------------------------------------
For super low premiums, click here http://www.webmail.co.za/dd.pwm
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.