1. Anyone not using 14" screen

Hi,

If anybody has a minute to spare, could they run the following .exw code
and let me have the return values of phys_height and phys_width.
To run it you will need a copy of David Cuny's Win32Lib.ew (I think any
version
will do, but stand to be corrected by David).

---------------------------------------------------
include dll.e
include win32lib.ew

with trace
without warning

integer win1, win1_dc, phys_height, phys_width

        win1 = create( Window, "Window", 0, Default, Default, 200, 100,
0 )
        win1_dc = getDC(win1)
trace(1)
        phys_height = c_func(xGetDeviceCaps, {win1_dc, VERTSIZE})
        phys_width = c_func(xGetDeviceCaps, {win1_dc, HORZSIZE})

        WinMain( win1 )
---------------------------------------------------
If you could also let me know your monitor size (i.e. 15").

It would probably be best if you send the results to me personally
so as not to clutter up the listserv messages.

Many thanks in advance

Terry

new topic     » topic index » view message » categorize

2. Re: Anyone not using 14" screen

Terry
  I get same as you 127 and 169 on 14" monitor using davids 41a library
Bernie

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

3. Re: Anyone not using 14" screen

Terry
   I used the same code using my library and it returns 127 and 169.
   Is there some reason that you need the screen size in milimeters ?
   Maybe there is another way to accomplish what you are trying to do.
Bernie

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

4. Re: Anyone not using 14" screen

Bernie Ryan wrote:

>   Is there some reason that you need the screen
>   size in milimeters ?
>   Maybe there is another way to accomplish what you
>   are trying to do.

The problem I was having was with font heights,
but it turned out that I had GetDC'd twice without
ReleaseDC'ing, hence was not getting the correct
textmetric values.

This though still doesn't address the usefulness
(uselessness) of VERTSIZE\HORZSIZE when they return
values of 203mm and 270mm respectively for both
a 15" screen (from Everett) and a 17" (from Wes and Mark).

If it is of any use to anyone *not* using David's library,
I have found that using the C func. CreateFont and specifying
a font height of double the pointsize required gives exactly the
same font height as other windows programs.

Thanks to all those who ran my piece of code and returned
the values

All the best

Terry

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

Search



Quick Links

User menu

Not signed in.

Misc Menu