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
TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
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?
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?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
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
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
Hi Klaus,
You can disable the rotate tool as follows: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 ?
Code: Select all
ChartTool1.Active:=false;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired
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
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
Hi Klaus,
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
Sorry, I was assuming you were using TChart, not TChart3D. Then, also assuming you where using TRotateTool if you weren't using the commander.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.
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
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |