[wxPython-users] Appending to default TextCtrl Popups
Robin Dunn
robin at alldunn.com
Thu Jul 27 12:52:01 PDT 2006
Walter Igo wrote:
> I am trying to appned another command like "RemoveWord" from my
> autoComplete Text Box. I have the word complete working fine now. it
> even automaticly adds words. now I want to add the command removeWord
> from the Default cut,copy,paste. I see where this was discussed in 2001
> but I dont know if it was ever resolved.
>
> is there a easy way to append the comand to the default list. or do I
> have to add the cut,copy,paste commands to the code.
The popup menu that STC uses is created deep inside Scintilla and is not
exposed to the application. You'll need to catch the EVT_CONTEXT_MENU
event yourself, and create and show your own popup menu with all the
items on it. For the items on the default context menu your handlers
can just call the STC methods for those actions.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list