Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL window overlaps context menus in WinForms designer #13

Open
dowdybrown opened this issue Oct 19, 2021 · 5 comments
Open

OpenGL window overlaps context menus in WinForms designer #13

dowdybrown opened this issue Oct 19, 2021 · 5 comments
Labels
4.0 bug Something isn't working
Milestone

Comments

@dowdybrown
Copy link

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.

@NogginBops
Copy link
Member

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?

@seanofw
Copy link
Collaborator

seanofw commented Oct 28, 2021

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 seanofw added the question Further information is requested label Oct 28, 2021
@seanofw
Copy link
Collaborator

seanofw commented Nov 15, 2021

Closing this issue due to inactivity.

@seanofw seanofw closed this as completed Nov 15, 2021
@NogginBops NogginBops reopened this Jul 12, 2022
@NogginBops
Copy link
Member

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 NogginBops added bug Something isn't working 4.0 and removed question Further information is requested labels Jul 21, 2022
@seanofw
Copy link
Collaborator

seanofw commented Sep 5, 2022

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.

@NogginBops NogginBops added this to the 4.0 milestone Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants