SFML community forums

Help => Window => Topic started by: Kestis on January 17, 2018, 04:29:50 pm

Title: Questions about handling a window
Post by: Kestis on January 17, 2018, 04:29:50 pm
I looked through the documentation of sf::window and it seems to be impossible, but I'm asking just to be sure.

Is it possible to make a window which is resizable by grabbing its edge but which does not have a title bar? Also can I maximize or minimize or float the window from code?
Title: Re: Questions about handling a window
Post by: Jonny on January 17, 2018, 07:37:33 pm
As far as I know it's not possible. SFML only supports the window styles here (https://www.sfml-dev.org/documentation/2.4.2/group__window.php#gga8d7a3b8425c907a2872cb57e32cea5b8a8c35a9c8507559e455387fc4a83ce422)

In the past I've added extra styles manually, which isn't too challenging if you know the platform specific code for what you want

Maximising the window from code has been discussed for a while but hasn't yet been implemented, more details here (https://github.com/SFML/SFML/issues/744)
Title: Re: Questions about handling a window
Post by: FRex on January 18, 2018, 01:32:33 am
You can get window handle from SFML and do stuff with it. On Windows ShowWindow from WinApi can minimize or maximize a window and you can probably find other things you asked for in the WinApi too. I have no idea about other OSes.
Title: Re: Questions about handling a window
Post by: Hiura on January 18, 2018, 01:11:29 pm
Maximising the window from code has been discussed for a while but hasn't yet been implemented, more details here (https://github.com/SFML/SFML/issues/744)

Contributions are more than welcomed! Even if the patch is for one OS, others from the community can chip in and add support for the other OSes.  ;)