Tom, Neil:

Removing the OnChange handler didn't work (It doesn't involve any margins
or markers,  just updates the status line).

Using EVT_STC_UPDATEUI instead of EVT_STC_STYLENEEDED did work, but not
quite, because EVT_STC_UPDATEUI doesn't get fired when scrolling the window
without moving the cursor. Adding a wxPython EVT_PAINT event solved the
problem, just don't know, if that's the sensible way to do it.

Thanks a lot for helping

Winnfried



[EMAIL PROTECTED] schrieb am 14.02.2006 22:08:53:

> If it covers everything you need, you might try EVT_STC_UPDATEUI
> instead of EVT_STC_STYLENEEDED. It's worked for me in the past.
>
> Tom
>
> Neil Hodgson wrote:
> Winnfried Hasel:
>
>
> This works very nicely, with one exception:
> If the window containing the Scintilla control is partly off the screen,
> the content doesn't get repainted properly: E.g. when moving some other
> window across the Scintilla control, the content of that other window
> appears in the text area of the Scintilla control. If I move the
Scintilla
> control back into the middle of the screen, until it's fully visible, the
> repainting works fine.
> This behaviour is definitely connected to the STYLENEEDED handler. If I
> remove it, everything is OK.
>
>
>    When some actions (such as adding markers) are performed inside a
> notification handler there can be some confusion about the area being
> redrawn leading to this sort of problem. This has been fixed for
> native Windows in 1.67 but I don't think the changes have been
> implemented in wxStyledTextCtrl and may be difficult there. This was
> discussed in November with subjects "Markers & Lexing" and "Paint
> region". Try removing your OnChange handler.
>
>    Neil
>
> _______________________________________________
> Scintilla-interest mailing list
> [email protected]
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
>   _______________________________________________
> Scintilla-interest mailing list
> [email protected]
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to