Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Problem with UltraChart item click
posted

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

 

Parents
No Data
Reply
  • 17605
    posted

    You can find which mouse button is clicked with Control.MouseButtons. For example:

     

    if (Control.MouseButtons == MouseButtons.Right)

    {

     

    }

Children