Pulsar4xDevs / Pulsar4x

A Fan work recreation of Aurora4x in C#
Other
159 stars 67 forks source link

Tooltips Don't work on System Map. #13

Closed SnopyDogy closed 12 years ago

SnopyDogy commented 12 years ago

Tooltips and the Mouse Hover Event don't work on the system map (SystemMap.cs). The problem is caused by the OpenGL Canvas (GLCanvas.cs).

Commenting out the line below: this.Controls.Add(m_GLCanvas);

Will fix the problem, however this disable the GLCanvas. I have check and the default GLControl provided by OpenTK does not have the same problem, so it is something in our code causing it.

I have tried using the latest nightly build of OpenTK and it did not resolve the problem. RealRyan Has tested and confirmed the issue.

SnopyDogy commented 12 years ago

I found that i had an Invalidate() call in the On_Paint Event Handler (Invalidate will call Paint, so... yeah this was a problem), removing it resolved the problem.