Hi,
I have a problem with ultrachart (9.2 hotfix 2042)...
I need to get right click event on item in ultrachart (GanttChart Type) but with ChartDataClicked event I can't understand which mouse button has been clicked.
My workaroud idea was:
- handle MouseClick event
- in the handler save a boolean field rightClick = true
- in the ChartDataClicked handler check rightClick field
but the problem is that MouseClick event is not fired when you click on items, but only when you click in portion of chart with no item...
Any idea to solve that ?
I also say that I handle chartItemOver-out to show my custom tooltip manager... could it be the problem ?
Thx in advance
You can find which mouse button is clicked with Control.MouseButtons. For example:
if (Control.MouseButtons == MouseButtons.Right)
{
}
It was a stupid question after all :)I thought ChartDataClicked event raised on mouse button release, so I didn't check Control.MouseButtons...My fault, thanks a lot for the help.
P.S.
I got a problem posted here --> LINK
but with no response... It's a ribbon-ultrachart issue so I think that concerns also to this forum section, could you give a look at it ?
Thank a lot again Teodor