Customize frame decoration

Hello,

Is it possible to customize the frame decoration (color, position of the close button…) of a window, no matter the underlying OS?

I didn’t see such a feature but not sure.

Thanks!

–?
Jog

I believe you can make a frameless window and draw all of it yourself.On 9 Jun 2015 5:14 am, wrote:

Hello,

Is it possible to customize the frame decoration (color, position of the
close button…) of a window, no matter the underlying OS?

I didn’t see such a feature but not sure.

Thanks!


Jog


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I hope so,*
We can I start drawing the borders, i mean should I create one global
frame (the decoration) and put everything I need inside, in a smaller sub
window to mimic the decoration & the content ?
It will force me to manage myself one more level, right ?
–*
Jog
*

You can draw everything in a single borderless window, then use
https://wiki.libsdl.org/SDL_SetWindowHitTest so your custom drawn
borders can resize, move, close the window e.t.c.

I don’t think you can do sub-windows with only SDL.On 09/06/15 12:28, deco33000 at yandex.com wrote:

I hope so,
We can I start drawing the borders, i mean should I create one global frame (the
decoration) and put everything I need inside, in a smaller sub window to mimic
the decoration & the content ?
It will force me to manage myself one more level, right ?

Jog


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

That answers the question :slight_smile:

Thanks a lot Alex

–?
Jog