Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrows overlap expand/collapse button (Read 2744 times)
Michael Pfeifer
YaBB Newbies
*
Offline



Posts: 22
Joined: Mar 24th, 2006
Arrows overlap expand/collapse button
Aug 31st, 2007 at 5:30am
Print Post  
Hello,

I set the expand button position to outer right. Sometimes it happens that arrows connected to the box overlap the expand button.
I tried to set my arrows to ZBottom and the Boxes to ZTop in the hope that the expand button also would get ZTop.
But that doesn't help. Is there any way to let expand buttons be displayed on top of arrows?

Thanks,
Michael
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows overlap expand/collapse button
Reply #1 - Aug 31st, 2007 at 6:15am
Print Post  
Changing the ZIndex should work fine. Make sure you are setting it after the Created event is raised -the Initialize and Creating events won't do because the arrow is not added to the Z order yet.

Stoyan
  
Back to top
 
IP Logged
 
Michael Pfeifer
YaBB Newbies
*
Offline



Posts: 22
Joined: Mar 24th, 2006
Re: Arrows overlap expand/collapse button
Reply #2 - Aug 31st, 2007 at 7:57am
Print Post  
Actually I thought that exactly that's what I am doing. We do not let users created nodes or arrows. We are all creating programmatically.
I basically call new Box() or new Arrow(), add the new objects to the FlowChart instance and then set the Z-index.
I tried to set the Z-index of arrows to 1 and the Z-index of boxes to 20, but that seems to be invane. They seem to get a Z-Index corresponding to the order in which they are created. E. g. first object z-index 1, second z-index 2 and so on.
Am I missing something?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows overlap expand/collapse button
Reply #3 - Aug 31st, 2007 at 8:59am
Print Post  
ZIndex corresponds to the index of an item in the FlowChart.Objects collection, i.e.

fc.Objects[item.ZIndex] == item

If you assign to it a value that is >= fc.Objects.Count, it will be probably set to fc.Objects.Count - 1. Also changing the ZIndex of one item will shift all other items in that collection and change their ZIndex as well.

Try setting the ZIndex of each new Arrow to 0 after it is created and added to the flowchart; then all arrows should appear below the boxes.

Stoyan
  
Back to top
 
IP Logged
 
Michael Pfeifer
YaBB Newbies
*
Offline



Posts: 22
Joined: Mar 24th, 2006
Re: Arrows overlap expand/collapse button
Reply #4 - Aug 31st, 2007 at 9:17am
Print Post  
Stoyan,

thanks for the explanation and the suggestion. It works out great!
Again A grade for Mindfusion support Wink

Take care,
Michael

PS: For anyone who is interested. Note that there is a interaction with the SelectionOnTop property. If that one is set to true and you select a node then the arrows attached to that node seem to come on top too and will again cover the expanded buttons of the selected and its related nodes.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint