Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoxMove event - how to? (Read 1576 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
BoxMove event - how to?
Apr 7th, 2007 at 1:26pm
Print Post  
Hello,

I looked for a BoxMove event or s.th. but couldn't find one. So here is my problem:

The user moves a box, but under the following constraint: The box can only follow a path (i. e. a horizontal line).

I managed to handle the BoxModified and BoxModifying events, to put the Boxes to the right place after dragging them aorund, but not during mouse moving.

Any suggestions? Or do I have to listen to the MouseMove event (but how do I know then, which Box is dragged?)?

Best regards

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxMove event - how to?
Reply #1 - Apr 7th, 2007 at 4:22pm
Print Post  
Hello,

You can do that without handling any events. Just set Box.Constraints.MoveDirection = Horizontal.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Re: BoxMove event - how to?
Reply #2 - Apr 11th, 2007 at 7:28am
Print Post  
Yes works great!

Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint