I would like to implement an incremental search type thing in MetaCard.
I would have two fields, the first field is the first to search in, and
the second field is the incremental search input field.
It would work like this: As the user types things into field 2, field 1
is searched for that string. So if the user types "e" than words
beginning with e match, user then types "m" and "em" is matched.
Anyone who has used emacs (Control-s) knows what I want.
The problem is that I want to run some code *after* the character has
been put into field 2. This lets MC take care of inputting characters
(including delete, hilighting, etc.) However, the keydown message only
lets you run code *before* you put chars into the field. As soon as you
do a "pass" or "send" there isn't anything else you can do. Is there
anyway I can get a message after the char has been entered into the
field?
Any thoughts out there?
Something really minor:
According to the limits in the MC reference stack, the maximum string
that can be sent/received from an external is 64K. I think that this
isn't quite true, as it is a limit of the X server, and may be as small
as 16K (but no smaller). ("X Protocol Reference Manual for X11 R5"
volume 0, p. 19). I recently bumped into this limit, a bit of a pain to
get around (now sending multiple chunks).
Does the libmc.a library also have this limit (i.e. does it still use X
properties to implement externals?
-Earle
-- Earle Lowe emlowe@fsa.ca FSA Corporation Performance and system software for UNIX networks.