Page 1 of 1

GanttTool button

Posted: Tue Feb 17, 2009 10:08 am
by 13051613
Hi,

In the DragPoint Tool i can choose what button i have to press to drag points or bars.

But in the GanttTool i don't know how to do this. I need to choose the button that i need to press to drag bars because when i call an external application by clicking in a gantt bar, the bar still dragging untill i get back to the chart application.

Can i choose what button of the mouse will active the gantt tool?

Posted: Tue Feb 17, 2009 12:19 pm
by yeray
Hi Pujol1986,

Yes you are right. There's no GanttTool property to assign a mouse button so I've added it to the wish list to be implemented in future releases (TF02013870).

We've tested a little bit to find a workaround and couldn't find how to do it with mouse buttons due to the events timing. Otherwise, you could activate/desactivate the tool with a key like this:

Code: Select all

void tChart1_MouseMove(object sender, MouseEventArgs e)
{
    ganttTool1.Active = (ModifierKeys == Keys.Shift);
}

Posted: Tue Feb 17, 2009 12:55 pm
by 13051613
okay Yeray.

i will try it.

Thanks :wink: