Menu

#112 Point values ToolTip keeps blinking

open
nobody
5
2012-09-19
2009-03-19
Shiny Wong
No

On Windows Vista Ultimate SP1 (32-bit en-US Edition), point values ToolTip of Line Chart kept blinking. The CPU usage got pretty high (over 60% for my Core 2 Duo E6320) when the ToolTip is showing. And all the timers of the form just paused.

There's no problem on Windows XP Prfessional SP3 32-bit ENU Edition.

Discussion

  • BlaiNn

    BlaiNn - 2009-11-25

    Same problem here.
    I think you can be solve the problem in ZedGraphControl.HandlePointValues by replacing:

    this.pointToolTip.SetToolTip(this, label);

    with

    if (this.pointToolTip.GetToolTip(this) != label)
    {
    this.pointToolTip.SetToolTip(this, label);
    }

     
  • Shiny Wong

    Shiny Wong - 2009-12-05

    Thank you very much. It really helped me a lot.

    The only small problem is that the tooltip won't show always, it will disappear after a timeout. But I think it doesn't matter.

     
  • Dave Moor

    Dave Moor - 2010-09-07

    I have just submitted a patch (ID: 3061209) which cures this problem.

     
  • Elvedin Hamzagic

    This problem exists on Windows XP, too. The problem is in ToolTip component. When AutoPopTimer expires (max time can be 5000 ms), component sends to itself MouseMove message to hide itself, and when ReshowTimer expires, then it repaint itself again. The prolem is that, at some circumstances, AutoPopTimer does not work correctly, and control sends messages very often (it happens to me when I display control in large window). However, if you don't want your ToolTip to blink, you can set indefinite popup time when you use Show method (has timeout argument) and Hide method instead of SetToolTip and Active property.
    This problem with ToolTip persist even when you use it directly in your form, and I have also some problems with Label component, simply components does not work as you expect.
    I will post my patch which solved problem for me, as soon as I find how :)

     

Log in to post a comment.