10019 : How to display the start and end time of a time object while it is being dragged

Question

Is there currently a way to display the start and end time of a time object while it is being dragged?

Resolution

Yes, you use the OnHintInfo event and use the arguments “theStart” and “theLength”, you can also use the IphGantX3.GetMouseMoveMode to find out what operation it is that is being applied.

private void axphGantX1_OnHintInfo(object sender, AxphGantXControl.IphGantXEvents_OnHintInfoEvent e)
{
  if (e.theStart.ToOADate()>0)
  {
    labelHint.Text=”Starts”+e.theStart.ToString()+” and This long:”+e.theLength.ToString();
  }
  else
  {
    labelHint.Text=”nada”;
  }
}