Hi,
I'd like to keep track of the InsertionPoint and/or the Selection of a
given wx.TextCtrl. So whenever the InsertionPoint is changed - either by
keyboard or via mouse - I'd like to get an event fired. Same applies to
the selection. Whenever a portion of the text within the TextCtrl is
selected an event should be fired.
How can I achive this - which events to use ? I've tried to use
wx.EVT_LEFT_UP and within that event look at event.GetSelection (). But
it turned out, that this event isn't fired on wx.Mac. It works fine on
wx.GTK and wx.MSW.
I'm using 2.6.1.1 on wx.GTK, 2.6.1.0 on wx.MSW and 2.6.2.0 on wx.Mac
Thanks for your help,
Johannes
···
--
BYTEWISE Software GmbH Tel +43 (5577) 89877-0
i.A. Johannes Vetter Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2 http://www.bytewise.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wir bieten Installation und Support für Ubuntu: ein auf
GNU/Linux basierendes Softwaresystem für Arbeitsplatzrechner