Re:{WIN] screen resolution problem
- Posted by joshua goldberg <futures8 at bellsouth.net> Aug 25, 2001
- 477 views
Derek; Thanks for the information. I'll look into getTextExtent() and setFont() today. Josh Derek Parnell wrote: I'm guessing the problem is that text is measured in points not pixels. And the size of pixel changes with screen resolution and physical dimension of the screen. You might need to recalculate the point size needed by calling getTextExtent() for a given piece of text and seeing how many actual pixel it takes up. Then adjusting the point size via setFont() until the text fits into the control area. Alternately, make the controls a few pixels bigger than the minimum needed. ----- Original Message ----- From: "joshua goldberg" <futu- at bellsouth.net> To: "EUforum" <EUfo- at topica.com> Sent: Friday, August 24, 2001 3:08 PM Subject: [WIN] screen resolution problem