Question regarding EVT_STC_AUTOCOMP_SELECTION event in stc's StyledTextCtrl

I am using wxPython 2.8 release. I am using stc’s
StyledTextCtrl class in my project.

I tried to use EVT_STC_AUTOCOMP_SELECTION event . When the
autocompletion list is popped up and a menu item is selected ,

The callback function provided for the
EVT_STC_AUTOCOMP_SELECTION event is called, but functions like GetLine() on the
event object passed to the callback function return a value of 0.

Am I missing something here ?

Thanks.

  • Aditya

Susarla, Aditya wrote:

I am using wxPython 2.8 release. I am using stc’s StyledTextCtrl class in my project.

I tried to use EVT_STC_AUTOCOMP_SELECTION event . When the autocompletion list is popped up and a menu item is selected ,

The callback function provided for the EVT_STC_AUTOCOMP_SELECTION event is called, but functions like GetLine() on the event object passed to the callback function return a value of 0.

Am I missing something here ?

No, it looks like the position and text values are not being set as they should be.

···

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