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
