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
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at
http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/