lose focus event?

David Morton
Sat, 19 Jan 2008 16:50:25 -0000

I''m new to wxruby, and I haven''t found any answer with google:
Is
there a way to capture a lose focus event on controls, such as a combo
box? All my experiments show events when changing the text, but not
when leaving the box.

I want to make a combobox that autocompletes if I press tab (or down
arrow or something), but if I click out or hit enter it needs to
prompt me to add a new value.   I''m trying to duplicate a behaviour in
an Access app - I''d really like to ditch Access!


On a higher level explanation, in case there''s a better way to do it...

I want it to search as I type, displaying possible matches, and let me
complete with one of the matches, or if there is no match use the
current search to create a new record.

David Morton
Maia Mailguard http://www.maiamailguard.com
mortonda@dgrmm.net



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHkipRUy30ODPkzl0RAi1bAKDNUbpfevGbpbkDQ8SqXXLZdDcrwQCfcE9G
3SLeVn92PcX8dgBXonwo0TA=ndvX