Re-sizing the form without scaling the GUI
Posted
by
Bmoore
on Game Development
See other posts from Game Development
or by Bmoore
Published on 2012-11-07T23:56:21Z
Indexed on
2012/11/08
11:24 UTC
Read the original article
Hit count: 221
c#
|windows-forms
I am writing a turn based strategy game in C#. My GUI implementation consists of class that extends Form containing a class that extends Panel. When I render the GUI I draw to the paint method in the panel.
I am trying to figure out what is the best way for handling form re-size events. I know I want a minimum window size, but I would prefer to not have a maximum or a set size.
Ideally the GUI would reveal more/less of the map as the user changes the window size. I would like to avoid scaling the graphics if at all possible.
What is the best way to handle re-size events?
© Game Development or respective owner