10899 : I am not finding a description for the event OnTimeItemLink_DoubleClick?

Question

 

I am not finding a description for the event OnTimeItemLink_DoubleClick(). Is there a workaround for this , possibly with OnTimeItemLink_SelectionChanged()?

 

Answer

 

You want to catch a dbl-click on a link?< ?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

You are correct we have no such event…

 

The workaround is to catch a normal-double click and see if that click started a mousemove operation that only comes if you click a link:

 

    private void gantt1_OnTimeItemAreaMouseDown(object sender, MouseEventArgs e)
    {
      if (e.Clicks == 2 && gantt1.MouseMoveKind==MouseMoveKind.linkReAssign)
      {
        gantt1.MouseMoveCancel();
        MessageBox.Show(“Hey, dbl click on link”);
      }
    }

Then we Cancel that started operation and bring up a dialog instead…

 

Leave a Reply