>"Ng Wei Gee" <[EMAIL PROTECTED]> wrote in message
>news:50058@palm-dev-forum...
> >
> > Hi Ben,
> >
> > > > This might not be an issue with 160x160 Palms, but I want it to be
> > > > compatible with HandEra 330 and the Clie 700C as well. :)
> > > Look at EvtGetSilkscreenAreaList to find the bounds for the grafitti
> > > areas. You probably should trap both penDown and penUp events in
>that
> > > region.
> >
> > Thanks for the reply. AFAIK, EvtGetSilkscreenAreaList is an OS3.5 API
>call
> > right?
Correct.
>If I were to maintain compatibility with older OS, can I assume
>that
> > I can hard code the bounds of the graffiti (since no Palms with
>resolutions
> > other than 160 x 160 exist for pre-OS.5 devices) if the OS is < 3.5,
>but
> > call EvtGetSilkscreenAreaList if OS3.5 exist? Or is there a more
>elegant
> > soln?
>
>That should work -- however, the true grafitti area, as opposed to the
>area below the displayed screen, can vary in pre-3.5 devices -- the ones
>with special Japanese text input silkscreens might have a smaller
>grafitti area than the Western units. Look at the related
>EvtGetPenBtnList for more assistance.
Ben is right, the Japanese 3.1 ROM has a narrower silkscreen area,
due to the four extra FEP buttons. So you'd wind up with three cases:
OS >= 3.5, OS < 3.5 && Japanese, and OS < 3.5 && Latin. To detect
Japanese, use FtrGet with the numEncoding selector, and compare
against charEncodingPalmShiftJIS.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/