SFML community forums

Help => Window => Topic started by: Ser_Darked-Sun on October 11, 2020, 05:46:26 pm

Title: How to create a maximized window?
Post by: Ser_Darked-Sun 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.
Title: Re: How to create a maximized window?
Post by: Stauricus on October 13, 2020, 03:52:03 pm
I don't get it. do you want it to be fullscreen OR maximized?