Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom Expending control (Read 4372 times)
lead8209
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Aug 9th, 2010
Custom Expending control
Jun 24th, 2011 at 10:39am
Print Post  
Hi,
is it possible to custom the "expand-collapse control".
I'm talking about the box(+/-) which is visible in the following picture :


What I would is just to enlarge it a little...

Thanks by advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Expending control
Reply #1 - Jun 24th, 2011 at 12:26pm
Print Post  
Hi,

It's not possible at this time. If setting the icon size is all you need, we could add some property for that next week.

Stoyan
  
Back to top
 
IP Logged
 
lead8209
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Aug 9th, 2010
Re: Custom Expending control
Reply #2 - Jun 24th, 2011 at 1:43pm
Print Post  
No that's fine.
Does it exit an event like NodeVisibilityChanged ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Expending control
Reply #3 - Jun 24th, 2011 at 2:42pm
Print Post  
There are TreeExpanded and TreeCollapsed events raised when clicking the +/- icon.
  
Back to top
 
IP Logged
 
lead8209
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Aug 9th, 2010
Re: Custom Expending control
Reply #4 - Jun 24th, 2011 at 3:18pm
Print Post  
yes but how to catch the visibility change of the children of a collapsed node ?

I explain : i've got a satelite node on the right of some nodes. There's no link between them.

When a node is collapsed, it hides 'automaticaly' children ; so i must check if the node that i'm collapsing got children to hide the satelites nodes.

With a visibilityChanged event no need to check if collapsed nodes have children. I can run my fonction to apply satelite node visibility.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Expending control
Reply #5 - Jun 24th, 2011 at 3:29pm
Print Post  
I suppose you will have to find them by following the links recursively. Or you could use the AttachTo method to associate these 'satellite' nodes with the tree nodes, and then set treeNode.SubordinateGroup.Expandable = true. That should make the satellites hide or show together with their tree nodes.
  
Back to top
 
IP Logged
 
lead8209
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Aug 9th, 2010
Re: Custom Expending control
Reply #6 - Jun 28th, 2011 at 1:47pm
Print Post  
ok thanks, i'll try AttachTo().
  
Back to top
 
IP Logged
 
lead8209
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Aug 9th, 2010
Re: Custom Expending control
Reply #7 - Jun 29th, 2011 at 10:15am
Print Post  
hi,
i've created my attached nodes but when i'm using :
Code
Select All
var layout = new TreeLayout();
layout.Type = TreeLayoutType.Cascading;
layout.Direction = TreeLayoutDirections.LeftToRight;
layout.LinkStyle = TreeLayoutLinkType.Straight;
layout.NodeDistance = 5;
layout.LevelDistance = -25;
layout.Arrange(diag_component);
diag_component.ResizeToFitItems(5); 


attached nodes are Arranged too...
How to configure layout so that it arange all but the attached nodes ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Expending control
Reply #8 - Jun 29th, 2011 at 10:44am
Print Post  
Hi, Try setting layout.KeepGroupLayout = true, or attachedNode.IgnoreLayout = true.
  
Back to top
 
IP Logged
 
lead8209
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Aug 9th, 2010
Re: Custom Expending control
Reply #9 - Jun 29th, 2011 at 11:05am
Print Post  
Thank you very much ! it works perfectly.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint