I doubt you can retrieve the physical size of the display. All you can
get is the screen density in terms of standard (160), double (320) or
such. If WinScreenGetAttribute( winScreenResolutionX, &valueX ); fails,
you could also get teh display bitmap and ask the bitmap for its size.
Regards
Henk
Richard Coutts wrote:
I don't know for sure, but I'd be surprised if the physical size of the
display was retrievable.
But, as you probably know, you can retrieve the make and model of the
device, and the current screen size in pixels. I'm guessing you'll have
to create a table in your code of the physical size in inches of the
screen for your target devices. This table, combined with the current
screen resolution should give you what you need.
Sorry if you've already thought of this and the info is useless.
Rich
I'm really, really stuck hard on this. Can anyone suggest anything to
help?
I need the current dots per inch from the display in order to properly
render some graphics - whose dimensions are in twips (a twip is 1 /
(20 X 72) - th part of an inch).
For some inexplicable reason, both of the following calls to
::WinScreenGetAttribute() returns 65535 on the T3 simulator.
65535 which is NOT a legitimate return value for it.
What am I doing wrong?
UInt32 valueX=0,valueY=0;
Err ex = ::WinScreenGetAttribute( winScreenResolutionX, &valueX );
Err ey = ::WinScreenGetAttribute( winScreenResolutionY, &valueY );
Thanks,
Paul Reger
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/