Sinisa Marovic (AC/EDD) wrote:
   Yes, I do it similarly, but with penDownEvent and assigning
the value to X,Y somewhere where the Title bar is. I don't like
any of those, it looks more like hacking. I hope someone will
post some better solution.

It may be a hack, but I think that is what Palm OS does when you
hit the menu button in that part of the graffiti area.

If you call EvtGetPenBtnList(), that gives you a list of the
silkscreen buttons on the device, and those each have a key character
code and modifier associated with them, so it would seem that when EvtProcessSoftKeyStroke() runs, that would check if the stroke is
within the bounds of that silkscreen button and, if so, then enqueue
the key associated with that button.

Anyway, even if you don't agree that it is the best style to handle
this by putting an event in the queue, it seems like the simplest
way to do it since a normal event loop will have MenuHandleEvent()
in it, and it is in response to certain events passed to that
function that the system draws the menu anyway.  (You could probably
just call MenuHandleEvent() or even MenuDrawMenu() directly and
thereby get the menu to draw, but that seems like it would cause way
more problems than it would solve...)

  - Logan

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

Reply via email to