The 2.0 script editor does these things, you just have to handle the
backSpaceKey and deleteKey messages (I removed them from the script I
posted to save space and avoid confusion).
> Also, let's say I searched for "Happy Days
> are here again", and now want to search for "Days are here". It would
> be natural to select the word "Happy", press delete, select "again",
> press delete.
I don't know how *you* use Emacs, but I almost never type more than 1
word. And it's never occured to me that the inability to edit the
search string (other than using backspace or delete) is a shortcoming.
> Why do I have to give up the usefulness and functionality of the entry
> field?
To be compatible with Emacs? ;-)
Back to your original post, though. It sounds like you want to have
the cursor in two fields at the same time, which is impossible. So
you have to make a choice: either put the cursor is in the search
string field and mark the found text by hiliting in the field to be
search (e.g., setting the textColor of the found string), or, you use
the design used by Emacs and the 2.0 script editor. The latter is
much easier to implement since you can just move the text cursor
(using the select command), but you also have to give up the ability
to edit the search string.
Your original questioned concerned the first type of implementation,
where you wanted to find the text *after* the character was entered
into the field. Why not just put the character into the field in the
script, then search, and then not pass the keydown message?
Scott
> --
> Earle Lowe
> emlowe@fsa.ca
> FSA Corporation
> Performance and system software for UNIX networks.
-- *********************************************************************** * Scott Raney 303-447-3936 Remember: the better you look, * * raney@metacard.com the more you'll see -- Lidia * ***********************************************************************