Text control that has "context" events

Maybe you want a ListBox? You could probably also make a one-column
ListCtrl in Report Mode
or perhaps use the VListBox...

···

On Jul 19, 6:44 pm, Raoul <raoulpa...@yahoo.com> wrote:

I want to use a simple, immutable text list control. It may look as
simple as a wx.TextCtrl (preferably), but it has to have the ability
that when a list item is clicked, double-clicked or right-clicked an
event will trigger in which I can query either the item number or,
preferably, the text value of the clicked line. I can't get a
wx.TextCtrl do do either. Most of a TextCtrl's "Get" methods require a
"lineno" , yet I've found no Get method to return the line number. Is
there a standard "trick" to get the lineno value ?

I've been playing with the wx.gizmos.TreeListCtrl, which does exactly
what I want using a double-click, but I don't want a tree structure,
multiple columns or the column titles' header up top.

Any suggestions ?

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org