10793 : I would like to move all linked items in one click and drag motion.

Question

I would like to move all linked items in one click and drag motion. I have not been able to figure out how to do this. I started by creating a list of all TphDataEntity_GantTime items in the link list and setting each items selected value to true in the gant mouse down event however this only works if I click a second time to initiate the move. Any suggestions?

Answer

If you do the exact same thing but in the IphGantX3.OnSelectionChangedGantTime event instead it will work better I am sure.

The problem is that when you get the mouse down the Gantt has already decidid what will be in the drag or not.

10730 : Is there a way to multi- timeitems so I can move them all together in the Gantt?

Question

Is there a way to multi-select timeitems so I can move them all together in the Gantt?

Answer

Yes. When the user holds the ctrl key, the selected property of clicked time items will be toggled. When the user drag time items all with the Selected=true is moved the same distance.