[wxruby-users] lose focus event?

David Morton mortonda at dgrmm.net
Sat Jan 19 11:50:25 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 at dgrmm.net



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

iD8DBQFHkipRUy30ODPkzl0RAi1bAKDNUbpfevGbpbkDQ8SqXXLZdDcrwQCfcE9G
3SLeVn92PcX8dgBXonwo0TA=
=ndvX
-----END PGP SIGNATURE-----


More information about the wxruby-users mailing list