The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Customize frame decoration
deco33000
Guest

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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Customize frame decoration
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
I believe you can make a frameless window and draw all of it yourself. On 9 Jun 2015 5:14 am, wrote:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Customize frame decoration
deco33000
Guest

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
š
Customize frame decoration
Alex Baines
Guest

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, wrote:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Customize frame decoration
deco33000
Guest

That answers the question :)

Thanks a lot Alex

--š
Jog
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org