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

Author Topic: Setting maximum/minimum size for window  (Read 2717 times)

0 Members and 1 Guest are viewing this topic.

kuraigu

  • Newbie
  • *
  • Posts: 3
    • View Profile
Setting maximum/minimum size for window
« on: February 10, 2018, 10:36:55 am »
How do I prevent the user from resizing the window below the minimum size or above the maximum size?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Setting maximum/minimum size for window
« Reply #1 on: February 10, 2018, 10:45:46 am »
Handle the resize event and adjust the window size accordingly.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything