dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
753 stars 300 forks source link

SharpGL in MDI ChildWindow: border #167

Open Azzar2 opened 4 years ago

Azzar2 commented 4 years ago

Good day Dave,

I use the SharpGL control in a WinForms MDI environment.

Issue 1: the borders of the MDI ChildWindow on which the SharpGL control rests cannot be hidden, i.e. the property: ChildWindow.FormBorderStyle = Windows.Forms.FormBorderStyle.None does not work; the borders always remain.

Issue 2: setting the ChildWindow's "FormBorderStyle" to Sizable, i.e.: ChildWindow.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable does not work since the mouse cursor does not change state when at the borders. The only workaround found so far is to set the ChildWindow's SizeGripStyle to "Show" and then then lower right corner can be "gripped" and used to resize the ChildWindow. ChildWindow.SizeGripStyle = Windows.Forms.SizeGripStyle.Show

Are there any know work arounds to this ?

Thanks for any suggestion.

Claude G.