Newt undecorated - round corners?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Newt undecorated - round corners?

Andre
This post was updated on .
Hi....

Is there a way to mask the GlWindow canvas with round corners in an unDecorated state? See reason = selfmade window on Win11. SetShape does not exist :(
I am a Robot
Reply | Threaded
Open this post in threaded view
|

Re: Newt undecorated - round corners?

gouessej
Administrator
Hello

You need to call CreateRoundRectRgn and SetWindowRgn somehow (if you keep the decoration). Maybe it's doable in pure Java by using the Foreign-Memory Access API. Otherwise, you have to modify the region used by the GLWindow if you want to use an undecorated window.

Good luck :s
Julien Gouesse | Personal blog | Website