1. Anyone not using 14" screen
- Posted by Terry Moriarty <terrymoriarty at EDERNEY.IDPS.CO.UK> Sep 30, 1999
- 395 views
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
2. Re: Anyone not using 14" screen
- Posted by Bernie Ryan <bwryan at PCOM.NET> Sep 30, 1999
- 370 views
Terry I get same as you 127 and 169 on 14" monitor using davids 41a library Bernie
3. Re: Anyone not using 14" screen
- Posted by Bernie Ryan <bwryan at PCOM.NET> Sep 30, 1999
- 353 views
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
4. Re: Anyone not using 14" screen
- Posted by Terry <terry at EDERNEY.IDPS.CO.UK> Oct 01, 1999
- 357 views
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