I have put the control before the sysHandleEvent. It's
managed well for the rest of the hard button of the
palm and its silk-screen. However, Could you pls shed
some light of how to control it even the system dialog
pop-up, by using sys_trap? I'm using PalmOS 4.0.

Pls help

--- LionScribe <[EMAIL PROTECTED]> wrote:
> That won't work, because the keyboard form and the
> date form use their own
> event loop, and you cannot change it. There are two
> suggestions I can think
> of, if you are using  pre-OS5 devices, then you can
> hack 'sysHandleEvent' so
> you can intercept all hard button events, even while
> a system dialog is
> showing. On OS5 machines, you can use notification,
> and intercept the
> sysNotifyVirtualCharHandlingEvent. If that doesn't
> work (which I can't think
> why not) then you will have to create your own
> keyboard and datepicker
> dialog (for your application) using the Palm source
> code, but that's a big
> job.
> 
> Lionscribe
> 
> "Kevin OKeefe" <[EMAIL PROTECTED]> wrote in
> message
> news:[EMAIL PROTECTED]
> Just catch pen events in the silkscreen area and eat
> them before
> SysHandleEvent.
> 
> RectangleType grafRect = {0,160,159,90};
> if ( event->eType == penUpEvent )
> {
> if(RctPtInRectangle(event->screenX, event->screenY,
> &grafRect))
> retval = true;
> }
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]
> Behalf Of apple k
> Sent: Tuesday, December 30, 2003 8:26 PM
> To: Palm Developer Forum
> Subject: Palm Clock on the silkscreen
> 
> 
> Hi.
> 
> I think I have posted this kind of question to the
> forum but no response.
> 
> Presently we have to design an application in such a
> way that only my application is in the Palm. I
> manage
> to disble all the functionality of all the hard
> button
> of palm, launchChr, and even Hostsync, PalmClock,
> Find, Contrast on the silkscreen (we are using Palm
> Zire). Now, the problem is:
> 
> Whenever user launch the PalmOS keyboard screen or
> Calender screen, all the silk-screen button is not
> our
> control. Meaning that they are able to tap on the
> LaunchChr, PalmClock, Find, HotSync button on the
> silk-screen as they are in the PalmOS keyboard or
> Calender screen (since our application will make use
> of these).
> However, I manage to handle it well for the LaunChr,
> HotSync button by using the PrefSetPreference with
> the
> constant given by PalmOS. But I couldn't find the
> PalmClock screen constant for the PrefSetPreference.
> 
> Is there any alternatives to trap the keyDownEvent
> as
> this event is not happened in our application(which
> is
> not our control)and happened in OS level?
> 
> Pls help. Any comments are very welcome. Appreciate
> of
> your opinions. Thank you.
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Find out what made the Top Yahoo! Searches of 2003
> http://search.yahoo.com/top2003
> 
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
> 
> 
> ------------------------------------------
> The information in this transmittal and any
> attachments are confidential and
> intended only for the recipient(s) listed above. You
> are hereby notified
> that any unauthorized distribution or copying of
> this transmittal or its
> attachments is prohibited. If you have received this
> transmittal in error,
> please notify invivodata immediately at (831)
> 438-9550.
> ------------------------------------------
> 
> 
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

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

Reply via email to