0

I've created a PointValueHandler, and added the event using:

this.zg1.PointValueEvent += new ZedGraph.ZedGraphControl.PointValueHandler(this.myPointValueHandler2);

However myPointValueHandler2 never gets called.

I have a similar event for MouseDoubleClick, which gets called perfectly.

The only difference I can see is that the MouseDoubleClick event method returns a void, where myPointValueHandler2 returns a string. The form designer by default adds a void method, which I manually changed to a string return.

What could I be doing wrong?

mcmillab
  • 2,752
  • 2
  • 23
  • 37
  • did you set zg1.IsShowPointValues = true ? – discomurray Jun 14 '14 at 02:09
  • yes - the standard PointValue tooltips are shown, and I can even change the format using PointValueFormat and PointDateFormat, but I can't get my own event to fire. – mcmillab Jun 14 '14 at 21:20
  • I've just noticed that if I right-click on the graph, and turn off "Show Point Values", nothing changes - ie default pointValue tips are still displayed – mcmillab Jun 17 '14 at 06:21

2 Answers2

0

isShowCursorValues was set to true. This needs to be false, and then the event is called

mcmillab
  • 2,752
  • 2
  • 23
  • 37
0

Set IsShowPointValues to true, then the event is called.