Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic itemSelected & mouseClicked event (Read 1959 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
itemSelected & mouseClicked event
Jul 4th, 2007 at 3:13am
Print Post  
Hi,

When an Box is selected for the first time, itemSelected event is fired, and then a mouseClicked event is fired.

If the selected box is clicked again, itemSelected event is not fired and only mouseClicked event is fired.

When an arrow is selected for the first time, it acts similar to the box, both the events are fired.

When the arrow is selected for a second time (not at the control points), the itemSelected event and mouseClicked event are both fired again. At a control point, only the mouseClicked is raised.

Would this be a bug or the expected behavior?

I am relying on a combination of these events to do some operation.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: itemSelected & mouseClicked event
Reply #1 - Jul 4th, 2007 at 6:51am
Print Post  
Hi,

The Selected event should be raised only when the selection state changes, so clicking the box for a second time should not raise it. If it is raised on the second click for an arrow, the control might be first deselecting the arrow and later selecting it again, which probably is not the right behavior.

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