10043 : Limit time item resize at given value


is it possible to stop the user form moving or resizing a TimeItem while it is moving or resizing? (e.g. the lenght of the item has reached a limit so it cant grow more)


You can implement the event OnTimeItem_Hoover or OnTimeItem_Move, OnTimeItem_StartValueResize and OnTimeItem_StopValueResize.

In this event you can check e.Diff to find out how big change that has been made. If the change is to big by some standard, you can set the diff back to a legal value…

if (e.Diff>legal)


Leave a Reply