[wxPython] Any experience with wxStyledTextCtrl?

I'm struggling with Markers. I need to set one and have it move with the
line, but I'm having difficulty figuring out which event handler needs to

be

modified/extended.

   Markers should automatically move with the line. If the default
processing does not do what you want then you should be watching for
SCN_MODIFIED (sorry, I don't know how this is spelled for wx) with the
SC_MOD_INSERTTEXT or SC_MOD_DELETETEXT modification flags. The position of
the change (as a character index) is in position and the number of lines
added or removed is in linesAdded. This notification is sent after the
marker is automatically moved so your move should 'stick'. You should be
using marker handles if you want direct control as then you can specify
exactly which marker you mean easily.

I'm also trying to fix a bug with the Python Lexer and folding. The

folding

marker is only displayed when the next line has a tab. I'd like the

control

to check the previous line so it can add the folder "after the fact".

   I'm not sure from your description but what you want may have been fixed
in Scintilla 1.25. Check SciTE 1.25 and see if it fixes this. If so, you may
be able to copy the Scintilla 1.25 source onto your wxStyledTextCtrl tree
and rebuild.

   Neil

   Markers should automatically move with the line. If the default
processing does not do what you want then you should be watching for
SCN_MODIFIED (sorry, I don't know how this is spelled for wx) with the
SC_MOD_INSERTTEXT or SC_MOD_DELETETEXT modification flags.

EVT_STC_MODIFIED, wxST_MOD_INSERTTEXT, and wxSTC_MOD_DELETETEXT. The last
two aren't there in the released version yet. Their values are 1 and 2.

   I'm not sure from your description but what you want may have been

fixed

in Scintilla 1.25. Check SciTE 1.25 and see if it fixes this. If so, you

may

be able to copy the Scintilla 1.25 source onto your wxStyledTextCtrl tree
and rebuild.

The wxWindows CVS already has 1.25+ of Scintilla in it. Just waiting for
the next release...

···

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