Is it possible to create a game window without tile?

Advanced game related topics
ricardo_sdl
Posts: 31
Joined: Fri Jan 10, 2020 12:30 pm

Is it possible to create a game window without tile?

Post by ricardo_sdl »

When I call OpenWindow, I want to create a window without the "title" part. In my case the call is like this:

Code: Select all

OpenWindow(0, 0, 0, 800, 600, "4th Breakout", WindowFlags)
It shows a window with "4th Breakout" on a white background bar at the top. Is it possible to not show it?

Thanks!
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Is it possible to create a game window without tile?

Post by Peter »

What about #PB_Window_BorderLess?
Mijikai
Posts: 33
Joined: Sun Sep 17, 2017 9:59 am

Re: Is it possible to create a game window without tile?

Post by Mijikai »

#PB_Window_BorderLess makes it not movable so i dont see a solution.
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Is it possible to create a game window without tile?

Post by Peter »

There was no mention of a movable window ;)

Code: Select all

WindowFlags = #PB_Window_BorderLess
OpenWindow(0, 0, 0, 800, 600, "4th Breakout", WindowFlags)
WID = WindowID(0)
! $(v_wid.window).draggable();
ricardo_sdl
Posts: 31
Joined: Fri Jan 10, 2020 12:30 pm

Re: Is it possible to create a game window without tile?

Post by ricardo_sdl »

Thanks! #PB_Window_BorderLess did the trick, I'm using it with #PB_Window_ScreenCentered to show the game screen centered.
You can check my games at:
https://ricardo-sdl.itch.io/
Post Reply