TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
niotronic
Newbie
Newbie
Posts: 14
Joined: Mon Jul 15, 2013 12:00 am

TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

Post by niotronic » Sat Jun 14, 2014 5:27 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

Post by Yeray » Mon Jun 16, 2014 9:09 am

Hi Klaus,

I've made a simple test for this. Find it attached:
SurfaceEvents.zip
(3.2 KiB) Downloaded 769 times
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,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

niotronic
Newbie
Newbie
Posts: 14
Joined: Mon Jul 15, 2013 12:00 am

Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

Post by niotronic » Mon Jun 16, 2014 1:06 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

Post by Yeray » Tue Jun 17, 2014 9:19 am

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:

Code: Select all

ChartTool1.Active:=false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

niotronic
Newbie
Newbie
Posts: 14
Joined: Mon Jul 15, 2013 12:00 am

Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

Post by niotronic » Tue Jun 17, 2014 3:09 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TSurfaceSeries OnClick, OnMouseEnter, OnMouseLeave not fired

Post by Yeray » Wed Jun 18, 2014 8:32 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply