Page 1 of 1
How can I make the OnEnter & OnExit events work?
Posted: Fri Jun 16, 2006 6:17 am
by 9531510
I will like to let the the Cursor Tool disapper when the mouse move out the Chart. However, these two events can't work. Do I need to do enything else to let them work, or they just put in there for fun?
PS. VB6 is my development tool.
Posted: Fri Jun 16, 2006 7:50 am
by narcis
Hi ivan,
Thanks for reporting. I could reproduce that and added the issue to our defect list to be fixed for future releases. In the meantime, an alternative is using something like this:
Code: Select all
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
TChart1.Tools.Items(0).Active = False
End Sub
Private Sub TChart1_OnMouseMove(ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
TChart1.Tools.Items(0).Active = True
End Sub
Posted: Mon Feb 11, 2008 5:40 pm
by 9527696
Hello,
I recently upgraded to V8.0.0.3.10507, and noticed that the OnEnter/OnExit events are still not triggered when the mouse enters and leaves the chart. My development platform is Microsoft Visual C++.
Are they going to be fixed in the near future?
Posted: Tue Feb 12, 2008 10:55 am
by narcis
Hello Jenn,
After reviewing the issue we found that it wasn't a bug. TeeChart needs to have the focus for those events being fired. Have you tried setting the focus to the chart and checking if the events are fired?
Thanks in advance.