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

OpenGLControl Undocking Issue #194

Open
GianlucaGrotto opened this issue Nov 20, 2020 · 1 comment
Open

OpenGLControl Undocking Issue #194

GianlucaGrotto opened this issue Nov 20, 2020 · 1 comment

Comments

@GianlucaGrotto
Copy link

I have a Form with OpenGLControl inside (C# program).

Those are the properties:

_glcontrol.RenderContextType = RenderContextType.NativeWindow;
_glcontrol.RenderTrigger = RenderTrigger.TimerBased;
_glcontrol.OpenGLVersion = SharpGL.Version.OpenGLVersion.OpenGL4_4;

When the Window is undocked the OpenGLControl become White and I can't restore the control over the component.

Any idea in order to resolve this issue?

thank you very much
[]
docked_window
udocked_window

(url)

@GianlucaGrotto
Copy link
Author

I noted that OpenGLControl has different behaviors if I set RenderContextType property to DIBSection or NativeWindow.
In the first case the window doesn't disappear while in the second case disappear .

very disappointing behavior. I partially solved recreating the Handle.

I need to investigate more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant