Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Questions about handling a window  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

Kestis

  • Newbie
  • *
  • Posts: 2
    • View Profile
Questions about handling a window
« 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?

Jonny

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Email
Re: Questions about handling a window
« Reply #1 on: January 17, 2018, 07:37:33 pm »
As far as I know it's not possible. SFML only supports the window styles here

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
« Last Edit: January 17, 2018, 07:40:42 pm by Jonny »

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Questions about handling a window
« Reply #2 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.
Back to C++ gamedev with SFML in May 2023

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Questions about handling a window
« Reply #3 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

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.  ;)
SFML / OS X developer

 

anything