Mat: > To do this i've been using Sci_SetCaretLineVisible which is called > during Scn_UpdateUI in the window's callback and sets the caret line > background visible or not depending if the current position equals the > anchor position. This works perfectly, except when a selection is made > in the first visible line in the Scintilla control, in which case the > text on that line appears corrupted.
Can you post a screen shot to a web site? Failure on top line is somewhat strange. You could try turning off line layout caching as that is somewhat sensitive to particular lines. It may be possible to patch up some temporary corruption by invalidating the window after setting the line invisible. > Also, the caret line background covers the brace highlighting > background which looks odd when matching braces between different > lines (one will be coloured, one not) and neither show up when > highlighting braces on the current line. Is there a simple way to > change this so that the background colour of brace highlighting is > visible? There is no simple way to change this. You could try modifying Editor::DrawLine to change how the caret line highlight is drawn but its likely to add too much complexity or cause extra drawing. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
