Page 1 of 1
TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Posted: Sat Jun 14, 2014 5:27 pm
by 16566563
Hello,
My Chart contains three TSurfaceSeries and I would like to use the OnCick, OnMouseEnter, OnMouseLeave events of a TSurfaceSeries, but unfortunately these events never seem to be fired ?!
Is there anything else to do except assigning an appropriate eventhandling procedure to the OnClick, OnMouseEnter, OnMouseLeave properties ?
Best regards,
Klaus
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Posted: Mon Jun 16, 2014 9:09 am
by yeray
Hi Klaus,
I've made a simple test for this. Find it attached:
The MouseEnter and MouseLeave events always seem to work fine for me.
The only conflict I see is between the OnClick event and the Rotate tool. Is this the problem you observed?
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Posted: Mon Jun 16, 2014 1:06 pm
by 16566563
Dear Yeray,
your example project is working as described.
But I'm not using the TeeCommander - my TChart3D is directly placed onto a TForm and the TChart3D is permanently pannable / rotateable / zoomable. - Is there a way to deactivate the rotate tool like the TeeCommander does in order to make the OnClick / mousedown etc. events fireing ?
Best regards,
Klaus
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Posted: Tue Jun 17, 2014 9:19 am
by yeray
Hi Klaus,
niotronic wrote:Is there a way to deactivate the rotate tool like the TeeCommander does in order to make the OnClick / mousedown etc. events fireing ?
You can disable the rotate tool as follows:
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Posted: Tue Jun 17, 2014 3:09 pm
by 16566563
Dear Yeray,
ChartTool1 is a member of which object ? Do you mean TChart3D.Chart.Tools[1].Active ? But my TChart3D does not have any objects in this Tools list ? - Do I have to add a TRotateTool to the tools list ? - but 3D rotation is already working without adding anything to this list. Please mind that I'm not using the TeeCommander, but instead have places a TChart3D directly on a TForm.
Best regards,
Klaus
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Posted: Wed Jun 18, 2014 8:32 am
by yeray
Hi Klaus,
niotronic wrote:ChartTool1 is a member of which object ? Do you mean TChart3D.Chart.Tools[1].Active ? But my TChart3D does not have any objects in this Tools list ? - Do I have to add a TRotateTool to the tools list ? - but 3D rotation is already working without adding anything to this list. Please mind that I'm not using the TeeCommander, but instead have places a TChart3D directly on a TForm.
Sorry, I was assuming you were using TChart, not TChart3D. Then, also assuming you where using TRotateTool if you weren't using the commander.
In TChart3D, as you say, this is different. The rotation is active without needing any tool, but I'm afraid the mouse events don't work fine. I've added this to the public tracker so this can be further studied for implementation:
http://bugs.teechart.net/show_bug.cgi?id=804