10030 : Is it possible to indicate when a collision that spans across multiple time lines?

Question

Is it possible to indicate when a collision that spans across multiple time lines?  And then, is it possible to draw a large vertical stripe that extends from the top of the form to the bottom of the form, with the width of the conflict, indicating that particular time slot has a conflict in it?

Answer

There is no built in function for what you describe, but you can draw over the whole time item area using the Gantt.OnTimeItemAreaPaintBackground event. You can find each conflict by getting the result from the Gantt.OnCollisionDetect. And finally, one important function, you can translate from datetime values to current pixels with the DateScaler.TimeToPixel method.

 

 

Leave a Reply