> On the web page is says, that everytime you change the text > manually, you have to update the fold regions yourself. And > looking at the code it seems to me, that every update > traverses through all fold ranges. I wonder how much overhead > this creates for big sources. > >
I assume you mean the following from http://mystix.sourceforge.net/code_folding.html Introduction Mystix uses the SynEdit component that was changed by me to support the code folding feature. It is based on the 2.0.1 version of the original component. You can use it in your own software on the same license as the original SynEdit. Usage To enable code folding, set SynEdit.CodeFolding.Enabled to True. Fold regions can be added only at run-time. You can add fold regions directly to SynEdit control or to the highlighter. Which does apply is controled by the CodeFolding.UseHighlighterFoldRegions property. First method that need to be called after adding fold regions is InitCodeFolding. After that you only need to call RescanForFoldRegions if you modify the buffer directly (eg. you add some lines, or modify the SynEdit.Text property somehow). You should use SynEdit.GetUncollapsedStrings function instead of SynEdit.Lines property. ---> it seems to also answer my question a bit, on whether they have CodeFolders components. They seem to allow one to add fold regions to the highlighter, not sure if new highlighters can automatically do it (make the regions) _____ avast! Antivirus <http://www.avast.com> : Outbound message clean. Virus Database (VPS): 0630-2, 26/07/2006 Tested on: 26/7/2006 8:01:19 ?? avast! - copyright (c) 1988-2006 ALWIL Software. _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
