Re: Keep the ration while resizing a form

From: alejandro lapeyre (alejandrolapeyre_at_jotmail.com)
Date: 02/21/05


Date: Mon, 21 Feb 2005 15:06:48 -0300

You want the same features as in a web page?

The windows forms are not designed to support that kind of automatic
resizing.
Keep enough space for your varying captions, use the default font, keep the
focus on your application purpose and wait for the next release.

regards
Alejandro Lapeyre

"8870" <8870@discussions.microsoft.com> escribió en el mensaje
news:0BD33C72-2C3F-442A-A952-FD4CE38347AC@microsoft.com...
> Thank you for the reply
> Yes I have seen the examples in the SDK. If I'm not wrong, the built-in
> layout system keeps the GIVEN SIZE (in pixels) for the elements with
> DockStyle Left, Right, Top and Bottom, and assigns the remaining space for
> the element with DockStyle Fill.
> The examples found at http://dotnet.jku.at/projects/slm/ go further the
> winforms built-in borderlayout system and provide several choices. When
> the
> container is resized, RubberLayout stretches every control (relative to
> the
> initial size) with the same factor, GridLayout divides the available width
> and heigth equally among the elements so they have all the same size,
> FlowLayout doesn't change the size of the contained controls but only
> their
> positions...
> But in all this stuff something is missing: the ability of the single GUI
> elements to calculate the space they need, and so the size and positions
> of
> the entire form.
> For example, a Button or Label should calculate its size based on its Text
> and Font. A container such as a Panel or Form or TabPage should calculate
> its
> size based on the conatained controls and subcontainers and the desired
> layout mode...
> I (and perhaps others) would like to build a form WITHOUT having to
> specify
> the size of anything in pixels, because giving the size in pixels isn't a
> good choice when the font, caption etc can change at runtime.
> see also
> http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=1729


Loading