1. 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....



id = create(RText,screen[i][3],ARF020,x,y,lth,25,0)
   setFont(id,"Courier New",9,Normal)

id = create(EditText,"",ARF020,xt,yt,fl,20,eflg)
   setFont(id,"Courier New",9,Normal)

thanks...
....george

new topic     » topic index » view message » categorize

2. Re: display question

I had the same kinds of problems when I used 
the Win32lib but, not anymore.

You need to first read up on Menu's and how to
change the fonts for the menuitems to be consistant with
user selected screen fonts.

Then read up on textmetrics so you can poke the values you
want for the fonts to be consistant throughout the window.

Some how the controls are pushed down or up on the
window depending on the font characteristics setup
by the user. My guess is that the screen resolution on
you laptop is different from you desktop or you use
large fonts on one and not the other.

Its a arguous task that will envolve several hours reading
the MS-SDK and writting the fix.

Sorry, Im not going to have my lib finished for a mnth or two.
but it will contain a procedure to set a consistant size font
on any of the major screen resolutions and user setup.

Euman
euman at bellsouth.net



----- 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....
> 
> 
> 
> id = create(RText,screen[i][3],ARF020,x,y,lth,25,0)
>    setFont(id,"Courier New",9,Normal)
> 
> id = create(EditText,"",ARF020,xt,yt,fl,20,eflg)
>    setFont(id,"Courier New",9,Normal)
> 
> thanks...
> ....george
> 
> 
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu