Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with Flowchart.SelectionChanged event (Read 4841 times)
kehiz
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jan 17th, 2012
Problem with Flowchart.SelectionChanged event
Jan 17th, 2012 at 9:00am
Print Post  
Hi to all, I am working with DiagramItems within a diagram. Each time I select a DiagramItem the SelectionChanged event should raise. And it works all times but when two DiagramItems overlap and one is selected.  Left clicking over the highlighted edge diselects the selected and selected the other DiagramItem but the event does not raise.

Do you have any idea of whatīs going on? How I get to rause the event properly?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with Flowchart.SelectionChanged event
Reply #1 - Jan 17th, 2012 at 11:10am
Print Post  
Hi,

SelectionChanged gets raised in my test. If you set a breakpoint on the first line of the handler and run in debug mode, doesn't the debugger stop there?

Stoyan
  
Back to top
 
IP Logged
 
kehiz
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jan 17th, 2012
Re: Problem with Flowchart.SelectionChanged event
Reply #2 - Jan 17th, 2012 at 1:08pm
Print Post  
SelectionChanged raises  in all cases except when overlapping 2 items and click on the edge of which has been selected previously (has been tested by debug mode)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with Flowchart.SelectionChanged event
Reply #3 - Jan 17th, 2012 at 2:47pm
Print Post  
Sorry but I can't reproduce this, I've tried it with overlapping items and clicking on selected item's edge. Are you sure the selection actually changes, you might be seeing the automatic handles shown if ModificationStart is set to AutoHandles? Can you attach here a sample project demonstrating that?

Stoyan
  
Back to top
 
IP Logged
 
kehiz
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jan 17th, 2012
Re: Problem with Flowchart.SelectionChanged event
Reply #4 - Jan 17th, 2012 at 3:35pm
Print Post  
I donīt understand what you mean with ModificationStart. I work with Visual Studio 2010 not with Flowchart designer (I donīt know if is related). I have tried to add an image of my real problem:

- I select the green item => Raises the event
- Click on the green item edge that overlaps the red item => selects the red item but the event does not raise.
  

example.png ( 19 KB | 127 Downloads )
example.png
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with Flowchart.SelectionChanged event
Reply #5 - Jan 17th, 2012 at 4:17pm
Print Post  
Are you using ControlNodes? ModificationStart is a property of the DiagramView class.
  
Back to top
 
IP Logged
 
kehiz
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jan 17th, 2012
Re: Problem with Flowchart.SelectionChanged event
Reply #6 - Jan 18th, 2012 at 9:12am
Print Post  
What do you mean with control nodes? I have modified the ModificationStart property to both values and the problem still happens.

Have you tried with the example I provided to you?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with Flowchart.SelectionChanged event
Reply #7 - Jan 18th, 2012 at 10:56am
Print Post  
I was asking whether the overlapping nodes from the screenshot are objects of the ControlNode class? I can't see a sample project attached.
  
Back to top
 
IP Logged
 
kehiz
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jan 17th, 2012
Re: Problem with Flowchart.SelectionChanged event
Reply #8 - Jan 18th, 2012 at 11:39am
Print Post  
The nodes I work with are ShapeNode. I didnīt attach code, I was talking about the image I provided you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with Flowchart.SelectionChanged event
Reply #9 - Jan 18th, 2012 at 1:02pm
Print Post  
I tried what that image shows, and SelectionChanged got raised as expected. Could you attach here a test project that reproduces the problem, or post your diagram and node initialization code?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint