Folded Lines

Topics: Developer Forum
Feb 20, 2008 at 7:42 PM
Hi,

First let me say this is a great control, really appreciate it thanks!

I'm working on developing an application that would open source files in C\C++ and allow the user to add\edit\view extra data the is shown as part of the file but not actually saved to the disk.

I was thinking of displaying the data into something similar to the #region where it folds but was wondering if ScintillaNET has the ability to add view only lines that are not part of the original file? For example adding these view only lines won't affect the line numbering of the original file.

If there is no support for such a thing an suggestions on how this can be implemented?

Thanks!
Coordinator
Feb 20, 2008 at 10:18 PM
Edited Feb 20, 2008 at 10:19 PM
Hmm, you may be out of luck on the ScintillaNET side of things. I do some limited extra painting over Scintilla but nothing quite like you're looking for. Two things I can think of offhand are:
on the lines in question add a style somewhere that has a large font size. This will cause the line to allocate extra height. This is problematic though in that I'm pretty sure the text is centered vertically whereas you would want it at the top.

Your second option which is more work but also probably more doable is to compile your own version of the native Scintilla control (SciLexer.dll) at http://scintilla.sourceforge.net/ScintillaDownload.html that does what you need. You can probably get ideas of how to go about this by asking the Scintilla mailing list http://groups.google.com/group/scintilla-interest.
Coordinator
Feb 20, 2008 at 10:54 PM
Edited Feb 20, 2008 at 10:55 PM
I don't suppose this is you? If not you'd better bug this guy to post his code!
http://groups.google.com/group/scintilla-interest/browse_thread/thread/d75d0576180ab8f5/3392c2463e699e78#3392c2463e699e78