Dialog Units

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Dialog Units

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:56 am

by Iain S. Kerr >> Wed, 23 Aug 2000 3:42:30 GMT

Can anyone tell me how to convert Dialog units to pixels?

Paper & Form Margins are in dialog units whilst the freeformat printing requires pixels to be specified.

To ensure I can line up data correctly I need to be able to convert one to the other rather than using trial and error for each Form.

Thanks

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Dialog Units

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:56 am

by JADE Kid - Ray Hidayat >> Wed, 23 Aug 2000 9:56:19 GMT

If these dialog units are twips, which I think they are, then this bit of information might help.

There are 1440 twips per inch.

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Dialog Units

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:56 am

by John Eyers >> Thu, 31 Aug 2000 21:22:05 GMT

A horizontal dialog base unit is one-quarter the average character width for the current system font, and a vertical dialog base unit is one-eighth the average character height for the current system font. I believe that a capital M is regarded as an average character in typography, so it should be possible to use the getTextExtent("M") and getTextHeight("M") methods to do the conversion?


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests

cron