Posted 11 years ago by Mick George - Software Engineer, CNC Software, Inc.
Hi I have a question regarding code outlining. I had been using token based outlining source in my code and I had it working pretty much how I wanted other than I was having a little difficulty setting the text that I wanted to be displayed when a region was collapsed, however, the more I read about using regions and the fact that our users will be opening very large files from time to time I believe that the range based approach would yield better performance overall so I re-factored my code using your code outlining ranged based example.
Everything is working correctly in regards to the applicable text collapsing but I am again faced with the issue of not being able to set the text I want displayed when a region is collapsed. For example when a function is collapsed I want the function header displayed just like your example but as it is now nothing displays other than the default [...] I have checked and double checked my code with your example and I see nothing wrong or missing. I have tried to implement an over-ride of GetCollapsedContent in a new class and hook that up to my code but with no luck so I must be doing something wrong?