Richtextbox region collapsing control
-
Hey guys, I'm making an IRC client and decided to muck around with the scripting GUI. I'm basing it on Visual Studio 2005/Orcas' interface, with the line numbers and the auto-complete style. I decided I would like to add the collapsible region type thing to it, for each function and custom areas. I tried looking at Sharpdevelop, as it has the same thing, though it's a little complicated for my liking. I also took a look at Fireball (I think that's the name), another editor which has regions in it, though a lot is in Spanish and somewhat confusing, though the regions are less buggy than on Sharpdevelop. What I was thinking, is that, store the text in memory and then draw it on the textarea, though I think I'd need to set the text on the control so it can handle the cut, copy, paste, navigation, etc. When I do that, it doesn't draw the text at all, only what the RTB.Text equals. If someone could please point me in the right direction or if they have looked through the Sharpdevelop and/or Fireball code (as it's C# and I don't know that all too well) and help, I would greatly appreciate it. Regards, Daniel Wallace