Hello,
I'm trying to turn off the caret line's background when a selection is
being made (so that the selection is easier to visualise when the
selection background colour and caret line background colour are
similar).
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.
The code is very simple with nothing else in the callback, and
Sci_SetCaretLineVisible appears to work correctly outside of
Scn_UpdateUI . This is on Windows with the latest SciLexer.dll. Any
ideas?
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?
Thanks,
Mat
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail
http://uk.messenger.yahoo.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest