10306 : How can TimeItem Move be Cancelled?

Question

Hello
How can TimeItem Move be Cancelled ?

example;
=============================
     TimeItem1 ——->TimeItem1
                     1. move
                              2. Check ? False
     TimeItem1 <——-
                     3.return to  Start Location
                 
——————————————–
Answer

In the public event TimeItemEvent OnTimeItem_Move();

You can make the check on the e.TimeItem.Start and e.TimeItem.Stop values if you add the e.Diff (this is the amount of move), then if you will not allow the move you can set e.Allow=false, or in this case, set e.Diff=0

 

 

 

Leave a Reply