From: "Neil Hodgson" <[EMAIL PROTECTED]>
Subject: Re: [scintilla] Inserting 131000 lines?
  Here is a modified version for Windows that defers updating the
scroll bars to paint time. Its rough and incomplete but should let you
see if this would be a big improvement for your case.

http://www.scintilla.org/ScintillaWin.cxx

  Neil
Thank you for the code, I dump you the stack trace which I systematically get when I 'pause' the execution of my procedure:
ContractionState::MakeValid()  Line 41
ContractionState::LinesDisplayed()  Line 89
Editor::MaxScrollPos()  Line 564 + 0xe
Editor::SetScrollBars()  Line 3294 + 0x8
Editor::NotifyModified(Document * __formal=0x029da2e8, DocModification mh={...}, Document * __formal=0x029da2e8) Line 3836
Document::NotifyModified(DocModification mh={...})  Line 1504 + 0x49
Document::InsertStyledString(int position=0x00066dde, char * s=0x05e46100, int insertLength=0x0000000e) Line 437 Document::InsertString(int position=0x000336ef, const char * s=0x02d80f58, unsigned int insertLength=0x00000007) Line 583 + 0x1c Editor::ReplaceTarget(bool replacePatterns=false, const char * text=0x02d80f58, int length=0x00000007) Line 5664

Robert Roessler mail is probably in the right direction. I mean getting the CanDeferToLastStep function to return true until I close my UndoAction. It would block the Editor::SetScrollBars call and solve the problem.

Regards,
Armel

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

Reply via email to