Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Sotping Collapse (Read 4361 times)
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Sotping Collapse
Oct 18th, 2006 at 9:47am
Print Post  
Hi again,

Thanks for your help the last time.
I have yet another question.
Is it possible to trap the actual 'collapse' event and change it?

I have a situation where I'm using a tree type graph. It is however possible to have "weak" relations between sibling (i.e. the have a common child).

My problem is that whenever I try to collapse the sibling FlowChart "sees" as parent it collapses the other sibling to.

Is there a way to prevent this?

Thanks in advnace,

Dror
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Sotping Collapse
Reply #1 - Oct 18th, 2006 at 10:30am
Print Post  
Hi,

Yes, you could set the flowchart.EventFlags(fOverrideTreeExpanding) = true and handle the BoxExpanded and BoxCollapsed events to implement your own expand/collapse logic. If in some situation you could use the standard expand functionality, call the Expand or Collapse methods of the Box class.

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


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Re: Sotping Collapse
Reply #2 - Oct 18th, 2006 at 12:47pm
Print Post  
Thanks Stoyo it did the trick  Roll Eyes
  
Back to top
 
IP Logged
 
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Partial Collapse Stoping?
Reply #3 - Oct 23rd, 2006 at 5:57am
Print Post  
Hi again,

Following my original question, is it possible to trap and handle only some of the collapse click (when event flags fOverrideTreeExpanding is false).

I'm having problems when I try to handle collapsing of boxes within a container.

My predecessor have developed a method that recursively collapses a try. This method is used outside the box ( Roll Eyes). When applied within the box it crashes the entire ActiveX.

Any suggestions?

Thanks in advance,

Dror
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Sotping Collapse
Reply #4 - Oct 23rd, 2006 at 7:42am
Print Post  
Hi,

There is no way to prevent the event from firing for some boxes. Can't you check if the clicked box is in a container and if so - don't call that method?

Stoyan
  
Back to top
 
IP Logged
 
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Re: Sotping Collapse
Reply #5 - Oct 23rd, 2006 at 7:57am
Print Post  
Thanks again for your timly response.

I tried that.

The problem is that if I turn FC collapse event off I cannot use it inside the container (which gives me better results inside). On the other hand, when I enable FC collapse it collapses every box it identifies as a child (logically). My application includes several types of relations and I only need to collapse a specifc type.

Is it at all possible?

Thanks

Dror
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Sotping Collapse
Reply #6 - Oct 23rd, 2006 at 9:16am
Print Post  
Why can't you use it inside the container - isn't the event raised if a box is contained within another one?

Stoyan
  
Back to top
 
IP Logged
 
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Re: Sotping Collapse
Reply #7 - Oct 23rd, 2006 at 11:17am
Print Post  
Thanks Stoyo man

I've resolved it in a different way.
I'm manually deleting both arrows and boxes thus ensuring no object is left un handled.

Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint