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

Author Topic: How to create a maximized window?  (Read 1033 times)

0 Members and 1 Guest are viewing this topic.

Ser_Darked-Sun

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
How to create a maximized window?
« on: October 11, 2020, 05:46:26 pm »
I want to attach a graphical interface to my program using the SFML library. I want the window to be full screen, but I can't figure out how to do it. When using sf :: Style :: Fullscreen, the program generally fills the entire screen without the top ribbon and overlaps the Start bar. If you use sf :: VideoMode :: getDesktopMode (), then from the obtained value you need to subtract the height of the top ribbon and the height of the Start panel, if there is one, besides, if you set the window coordinates (0, 0), then it will not be from the very left at the top, but will be with a small deviation. It would be easier to create a maximized window and then read its dimensions, but I can't find how to do that.

Stauricus

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • Email
Re: How to create a maximized window?
« Reply #1 on: October 13, 2020, 03:52:03 pm »
I don't get it. do you want it to be fullscreen OR maximized?

 

anything