Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoxModifying event not firing (Read 2192 times)
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
BoxModifying event not firing
Jan 2nd, 2007 at 4:39pm
Print Post  
Good day,

I am having a problem with the BoxModifying event not firing when I am moving a box.  I select the box via code and set the handlestyle to EasyMove.  I get the BoxModified when the mouse is released, but I do not get the Modifying event as the box is being moved.

Any suggestions??

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxModifying event not firing
Reply #1 - Jan 3rd, 2007 at 6:27am
Print Post  
Good day,

Is the box in a multiple-selection? If there are more than one selected boxes, the control will raise SelectionMoving instead of BoxMoving.

Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: BoxModifying event not firing
Reply #2 - Jan 3rd, 2007 at 10:19am
Print Post  
Good Morning,

No, it is not part of a multiple selection, I have also turned AllowMultiSel to False.

In examining the Selection property of the flowchart I can see that the Arrows collection has a count of 1, and the Boxes collection has a count of 1.  I now think that I know where the problem is, I need to turn the SelectAfterCreate off on the flowchart to avoid the previous item from staying selected.

If that doesn't work, I'll just use the SelectionMoving event.

BTW, BoxMoving??  I didn't see that in the documentation.  I'm using BoxModifying.

Thanks for the help,
Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxModifying event not firing
Reply #3 - Jan 3rd, 2007 at 1:31pm
Print Post  
Hello,

Use the Selection.Change() method to select the box and automatically deselect the arrow. Otherwise, if there are two items selected, the control will raise only the SelectionMoving event.

Indeed the box event name is BoxModifying.

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