Re:{WIN] screen resolution problem

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu