GLControl icon indicating copy to clipboard operation
GLControl copied to clipboard

OpenGL window overlaps context menus in WinForms designer

Open dowdybrown opened this issue 4 years ago • 5 comments

When editing a context menu in WinForms designer, the menu is initially display over the top of the GLControl window. However, because the GLControl gets constantly refreshed due to the spinning box, it then gets displayed on top of the context menu, making context menu edits impossible. The spinning box is cool, but a static description in design mode would be more functional.

dowdybrown avatar Oct 19 '21 19:10 dowdybrown

Thanks for the report. I was unaware that this was a problem. This is definitely something we should solve. @seanofw do you have any clues if we can solve it so that the redrawing doesn't cause this or do we have to disable that?

NogginBops avatar Oct 27 '21 23:10 NogginBops

I've been trying to reproduce this behavior locally, and I can't: Everything I've tried seem to work just fine. @dowdybrown Can you describe precisely how to cause the issue so we can investigate it?

seanofw avatar Oct 28 '21 01:10 seanofw

Closing this issue due to inactivity.

seanofw avatar Nov 15 '21 15:11 seanofw

I just happened upon this issue. In design mode, if you try to edit the elements in the window menu, the GLControl renders on top of the menu items.

Here is a picture showing the issue: image

NogginBops avatar Jul 12 '22 18:07 NogginBops

I think this may be a bug in the Designer itself: I've since run into this problem before with other controls, not just the GLControl. If you go into the .Designer.cs file and you change the order in which the MenuStrip and GLControl are declared, instantiated, and added to the form (i.e., move the MenuStrip before the GLControl or vice versa), does the problem go away?

Actually, we can probably prove this beyond the shadow of a doubt: If you alter the GLControl so that it doesn't start the timer, does the problem still happen? Because then the GLControl won't be repainting itself at all except using "normal" GDI+ when the Designer asks it to: If the problem still happens then, the problem is probably due to the Designer, not due to the GLControl.

seanofw avatar Sep 05 '22 14:09 seanofw

Thank you for the fix. I look forward to testing version 4.

dowdybrown avatar Sep 03 '24 17:09 dowdybrown