On Tuesday 05 August 2008 07:17:57 am fv sdfsaer wrote:
> I just want to add an auto-completion behaviour when typing inside a cell.
> As far as I understood (and this may be wrong) I need to make something
> like a wxGridCellEditor react on user input by binding a wxCHAR event to
> it. I could be mistaken since I do not have much experience.

I'm not to sure this will be of help but I offer it anyway.  Check out 
gridRendereres.py and I would start with something like:

from dabo.ui import dKeys as dKeys
keyChar = evt.keyChar 
if (keyChar in """,./<>?;':"[]\\{}|[EMAIL PROTECTED]&*()-_=+"""):
   evt.stop
else:
   do myRoutine

I hope helps and does not lead you off in the wrong direction.

-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to