10578 : Time from x-coord


Hi I’d like to ask, how to get the Datetime value from a row by having the X coordonate?

I need to implement Drag&Drop from a control to the phGantt(COM version under VB6) and the only one way I found is to use DragOver and DragDrop events. By having the Y value I found the needed row and tree item, how can I find the datetime value where something was droped from that line?


Once you have the correct x coordinate for the date scaler (you may or may not need to compensate for the grid width etc based on what you are doing ) you send this in to the function IphGantX3.PixelToDate(x:int):TDatetime

Leave a Reply