GanttTool button

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

GanttTool button

Post by Pujol1986 » Tue Feb 17, 2009 10:08 am

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?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Feb 17, 2009 12:19 pm

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);
}
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Post by Pujol1986 » Tue Feb 17, 2009 12:55 pm

okay Yeray.

i will try it.

Thanks :wink:

Post Reply