"Steve Achelis" <[EMAIL PROTECTED]> wrote in message
news:26367@palm-dev-forum...
>
> My app currently handles the system find event sysAppLaunchCmdFind.
>
> The docs say, "An application can also integrate the find operation in its
> own user
> interface and send the launch code to a particular application."
>
> Any ideas on how to do this?  I'd like to launch the system's Find dialog,
> get the results in the system's Find list, but only have it search my app
> (not all apps that are installed on the device).

If I read you right, you want to override the find key in your application,
having it only search your app.

To do this, You'd need to catch the find keystroke, vchrFind, before the
system gets a chance to intercept it.  You can do this by checking for it
before your event loop calls SysHandleEvent.

At that point, you'd need to open your own dialog, perform your own search,
and return the results in your own window.  Don't go through
sysAppLaunchCmdFind unless you also want your application to be searchable
when other programs are running.  I don't think there is a way (other than a
system hack) to constain the system's find to only a single application.



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

Reply via email to