Page 1 of 1

Is it possible to create a game window without tile?

Posted: Mon Dec 02, 2024 8:27 pm
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!

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

Posted: Mon Dec 02, 2024 9:02 pm
by Peter
What about #PB_Window_BorderLess?

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

Posted: Mon Dec 02, 2024 9:03 pm
by Mijikai
#PB_Window_BorderLess makes it not movable so i dont see a solution.

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

Posted: Mon Dec 02, 2024 9:20 pm
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();

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

Posted: Wed Dec 04, 2024 2:53 pm
by ricardo_sdl
Thanks! #PB_Window_BorderLess did the trick, I'm using it with #PB_Window_ScreenCentered to show the game screen centered.