[wxPython] About wxStyledTextControl

Hi all.

I’ts possible to customize the popup menu into the wxStyledTextControl and insert new options or change the name of the options presents?.

I want to include a new option:

Undo

Redo
···
___

..

::

___

Select All

__

Find

Thank you in advance.

Juan Huertas

Juan Huertas:

I'ts possible to customize the popup menu into the
wxStyledTextControl and insert new options or change
the name of the options presents?.

    There is no method on Scintilla / wxSTC for changing the contents of the
popup menu. There is a UsePopUp method to turn the menu on or off. Once the
default menu is turned off then the toolkit's native event handling may be
used to receive the click and then your code can display a popup menu. On
Windows, handling the WM_CONTEXTMENU message is the way to do it. I don't
know what the wxPython equivalent is.

   Neil

    There is no method on Scintilla / wxSTC for changing the contents of

the

popup menu. There is a UsePopUp method to turn the menu on or off. Once

the

default menu is turned off then the toolkit's native event handling may be
used to receive the click and then your code can display a popup menu. On
Windows, handling the WM_CONTEXTMENU message is the way to do it. I don't
know what the wxPython equivalent is.

In 2.3.2 there will be a EVT_CONTEXT_MENU, but EVT_RIGHT_UP will also work
fine.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!