On Tue, Aug 5, 2008 at 8:34 AM, johnf <[EMAIL PROTECTED]> wrote:
> 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.
I wonder if you could use a gridRenderer and have it pop up a context
menu with the auto complete choices. I think it'll work, but that is
just off the top of my head. Might be something to try if you are
just looking for autocomplete.
Nate L.
_______________________________________________
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]