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

Author Topic: Disable resizing  (Read 963 times)

0 Members and 1 Guest are viewing this topic.

Elekhyr

  • Guest
Disable resizing
« on: August 21, 2014, 04:43:01 pm »
Hi everybody !
I'd like to disable the resizing of a sf::RenderWindow, sf::Style::Resize is made for that but it doesn't work as I wish, I'll also disable the resizing by arrows.

Can you help me ?

Thanks a lot !  ;D

PS : If you want to know why, it's to resize the window only when I click on a button, to add one line (ex 20px by 20px to each click)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10823
    • View Profile
    • development blog
    • Email
Re: Disable resizing
« Reply #1 on: August 21, 2014, 04:45:09 pm »
Don't add the sf::Style::Resize and don't add a style which includes that style and it will work.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Elekhyr

  • Guest
Re: Disable resizing
« Reply #2 on: August 21, 2014, 04:49:00 pm »
I had to read the definition of sf::Style::Close ahah

Thank you !

 

anything