Ton van Overbeek wrote:
On 2006-08-03, Douglas Handy <[EMAIL PROTECTED]> wrote:
Luc,

...and WinGetDisplayExtent() cannot reliably used to determine DIA presence once and for all since it depends on the current DIA and slider status :(
You need to use WinScreenGetAttribute(), not WinGetDisplayExtent().

Doug

I had a feeling there was a better function than WinGetDisplayExtent() and WinScreenGetAttribute() is it. Note it is only available with the hires feature set. For e.g. Sony PalmOS4 or Handera devices you need some other solution, but this should take care of the Z22.
Thanks Doug for refreshing my memory.


Actually, on a T3 with a closed slider, WinScreenGetAttribute returns a height of 320. So for the moment, I'll only perform the Palm-recommended DIA test:

if ( ( FtrGet( pinCreator, pinFtrAPIVersion, &version ) == errNone ) &&
     ( version != 0 ) )

on hi-res devices, hoping no DIA-less hi-res devices behaves like the Zire 22.

By the same token, can a landscape-capable device be detected? I do:

if ( SysGlueTrapExists( pinSysGetOrientation ) )

but this returns false on a T3 :(


--
Luc Le Blanc

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to