Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodesExpandable not working with ControlNode (Read 2939 times)
SStone
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Dec 4th, 2015
NodesExpandable not working with ControlNode
Dec 4th, 2015 at 3:09am
Print Post  
I'm new and testing features, but I can't seem to make "NodesExpandable" feature work with ControlNodes.
I set "Expandable" to true on the node but never see the expand/collapse button.  I don't see in the docs where it shouldn't work. I tried both empty ControlNode and one with a panel assigned to the control. No luck.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodesExpandable not working with ControlNode
Reply #1 - Dec 4th, 2015 at 10:04am
Print Post  
It should work with this build:
https://mindfusion.eu/_temp/ctrlnodes.zip

Try using CompositeNodes instead anyway, unless you need to show some complex controls. We've created them as replacement of ControlNodes and they integrate much better with other diagram features, such as hit-testing, Z order and printing.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SStone
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Dec 4th, 2015
Re: NodesExpandable not working with ControlNode
Reply #2 - Dec 4th, 2015 at 5:29pm
Print Post  
I don't see how to add a "Control" class to the "CompositeNode"
The ControlNode had a "Control" property.
I'm guessing only your "ComponentBase" classes are allowed in a CompositeNode.
Any way to have a ComponentBase derived class that has a windows handle to place standard controls in??
I've included a image of what I'm trying to do. All seems to work except the Expandable feature. Which is important.
Thanks for all your help.
  

img.gif ( 61 KB | 93 Downloads )
img.gif
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodesExpandable not working with ControlNode
Reply #3 - Dec 4th, 2015 at 5:35pm
Print Post  
Quote:
Any way to have a ComponentBase derived class that has a windows handle to place standard controls in??


There's no way to do that; ComponentBase-derived objects are used as light-weight alternative of full Control objects and are not intended to open additional window handles as ContolNode-hosted controls do.

Quote:
I've included a image of what I'm trying to do. All seems to work except the Expandable feature. Which is important.


It should work with the new build above. Alternatively you could call Expand/Collapse methods from a +/- button inside the hosted control.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint