RE: Re: display question

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

> From: euman at bellsouth.net
> To: EUforum <EUforum at topica.com>
> Reply-To: EUforum at topica.com
> Subject: Re: display question
> Date: 29/07/2001 10:37:03 AM
> 
> I had the same kinds of problems when I used 
> the Win32lib but, not anymore.

Hey, that's not fair blink This problem has nothing to do with Win32Lib, which
is not what your remark implies.
 
> ----- Original Message ----- 
> From: "George Walters" <gwalters at sc.rr.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Saturday, July 28, 2001 16:17
> Subject: display question

> > I have a panel with the items below and on my PC it 
> displays as I would like
> > it. All items line up and the input field is exactly the 
> correct length for
> > the number of chars to be entered. The problem is that when 
> run on my laptop
> > nothing lines up any more...I thought a pixel was a pixel. 
> Can some one
> > explain this to me and suggest a solution....

Well a pixel is a pixel, but not all pixels are the same size. The actual
physical size of a pixel depends on the physical capabilities of the display
monitor.

In your program you have used a constant factor that represents a pixel
size. Instead, you have to ask Windows what is the correct factor for the
screen you are currently using and then use that, in conjunction with the
pixel dimensions used by the particular font you are using. As this is a
fairly common requirement, we should include some support for this in the
library. I'll add it to the enhancement list.

-----------
cheers,
Derek Parnell
Senior Design Engineer
Global Technology Australasia Ltd
dparnell at glotec.com.au


confidential information intended solely for the use of the individual or
entity to whom they are addressed. If you are not the intended recipient of
this message you are hereby notified that any use, dissemination,
distribution or reproduction of this message is prohibited. If you have
received this message in error please notify the sender immediately. Any
views expressed in this message are those of the individual sender and may
not necessarily reflect the views of Global Technology Australasia Limited.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu