Hi Neil, Thanks for your reply.
On Wed, 4 Jan 2006 13:02:02 +1100, Neil Hodgson wrote: > 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. Turning off the layout cache appears to cure the problem. I'll need to do some timing tests to see if that is ok in my main project. With caching turned on the corruption is only temporary and disappears very quickly but it doesn't look good. I've uploaded a screenshot (12k) here: http://purebasic.myftp.org/files/6/scintilla/scintillaproblem.png And a zip (192k) containing a small demonstration exe, scilexer.dll and source (written in PureBasic) is here: http://purebasic.myftp.org/files/6/scintilla/scintillaproblem.zip > >> 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 Ok. If anyone decides to do some work in that area then please consider it a feature request ;-) Thanks, Mat ___________________________________________________________ NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/ _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
