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