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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ser_Darked-Sun

Pages: [1]
1
Window / 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.

Pages: [1]