> I want to pass a string from my application to the global find, and have
it
> display the search results.  Can I do this?

The Find dialog uses the selection in the active field, if any, to populate
the search string field. It trims this string if necessary. If there isn't
an active field, it uses the last search string, which it remembers in a
system preference. So one approach that might work is to set up a field with
the desired text, select it, and then enqueue a vchrFind keyDownEvent.
Hopefully this will work even if the field is hidden.

A less portable approach would be to modify the system preference that the
Find dialog uses to store the last search string. Look for
sysResIDSysPrefFindStr in SystemResources.h. Although this constant is
defined in a public header file, I wouldn't count on it not changing in the
future.
--
Danny @ PalmSource

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

Reply via email to