SFML community forums
Help => Window => Topic started by: Shay9999 on July 18, 2011, 08:22:06 am
-
Hey, I don't know if this is a function already, I couldn't find it, but is there a way to disable the option to re-size the window? Like, get rid of the maximize button and make it impossible for the user to increase the height and width of the window >_>?
Please respond ^_^
-
You can choose the style of the window with the 3rd argument of the constructor or Create function.
Please respond ^_^
This is not necessary to get answers, you know... ;)
-
I know, but I'm high as fuck
-
mmkay, so this is what happened and this is what didn't:
sf::RenderWindow Window(Program, "My Program", sf::Style::Resize = 0, 0);
and no worky. What's wrong? Be back latez.
-
Because that's not how enumerations work? It doesn't even compile because it's not proper C++. Maybe you should be sober while programming? After all it's a brain activity.
-
Styles don't need to equal anything, they just are.
sf::RenderWindow Window(Program, "My Program", sf::Style::Resize, 0);
Try out all the different styles by compiling and changing the style between Resize and the other options, you'll quickly see how it works, and what the different options do.
-
Maybe you should be sober while programming? After all it's a brain activity.
Yeah, good point...
no worky. What's wrong? Be back latez.
Wow, I sound like the freaks I make fun of.
Styles don't need to equal anything, they just are.
sf::RenderWindow Window(Program, "My Program", sf::Style::Resize, 0);
Try out all the different styles by compiling and changing the style between Resize and the other options, you'll quickly see how it works, and what the different options do.
Thanks for the sample code <3
I think I got it working now, ty everyone ^_^