Page 1 of 1

Auto hide/show the cursor tool

Posted: Thu Dec 18, 2014 1:48 pm
by 16568648
Is there a possibility to automatically hide/show a TCursorTool if the mouse is within the charting region (=where the chart itself is drawn, not the title, axis, etc.). OnMouseEnter/OnMouseLeave is a bit of a workaround, as this event occurs if entering the chart panel and not the area where the chart itself is drawn. So as there is obviously not builtin solution, is there a way to determine the charting region.

Re: Auto hide/show the cursor tool

Posted: Fri Dec 19, 2014 11:44 am
by yeray
Hi,

Yes, we call the "charting region" ChartRect.
So you could use OnMouseMove event to toggle the visibility of the cursor tool.

Re: Auto hide/show the cursor tool

Posted: Fri Dec 19, 2014 12:15 pm
by 16568648
Great, thank you. Exactly what I was looking for.
Cheers,
Christian