Posted 14 years ago
by Mick George
-
Principle Software Engineer,
CNC Software, LLC
Version: 10.2.0531

I have added links to images showing what I am trying to accomplish.
When I load a file all collapsible regions are in an initial collapsed state.
Document Loaded
When the user clicks on a collapsed "#region" to expand it, all of the collapsed regions contained within that "#region" automatically expand.
Expanded "#region"
However, what I am actually trying to accomplish is that when a "#region" is expanded all other regions contained within do not expand.
Desired result
An interesting observation, if I load a file and expand a "#region" but then manually collapse all regions it contains I can then toggle the "#region" and now all the regions contained within do not expand, they stay collapsed? This is actually the functionality I am looking for.
Below is the constructor of my outlining source class:
When I load a file all collapsible regions are in an initial collapsed state.
Document Loaded
When the user clicks on a collapsed "#region" to expand it, all of the collapsed regions contained within that "#region" automatically expand.
Expanded "#region"
However, what I am actually trying to accomplish is that when a "#region" is expanded all other regions contained within do not expand.
Desired result
An interesting observation, if I load a file and expand a "#region" but then manually collapse all regions it contains I can then toggle the "#region" and now all the regions contained within do not expand, they stay collapsed? This is actually the functionality I am looking for.
Below is the constructor of my outlining source class:
/// <summary>
/// Initializes static members of the PostOutliningSource class.
/// </summary>
static PostOutliningSource()
{
postRegionDefinition = new PostBlockCommentNodeDefintion();
postRegionDefinition.IsDefaultCollapsed = true;
postRegionDefinition.IsImplementation = true;
postBlockDefinition = new PostBlockCommentNodeDefintion();
postBlockDefinition.IsDefaultCollapsed = true;
postBlockDefinition.IsImplementation = true;
postSetCallBackDefinition = new PostBlockCommentNodeDefintion();
postSetCallBackDefinition.IsDefaultCollapsed = true;
postSetCallBackDefinition.IsImplementation = true;
postOutputCallBackDefinition = new PostBlockCommentNodeDefintion();
postOutputCallBackDefinition.IsDefaultCollapsed = true;
postOutputCallBackDefinition.IsImplementation = true;
postMachineLayerDefinition = new PostBlockCommentNodeDefintion();
postMachineLayerDefinition.IsDefaultCollapsed = true;
postMachineLayerDefinition.IsImplementation = true;
}