Min/Max Width and Height Form Properties

Started by Paul Squires, January 23, 2010, 08:53:45 PM

Previous topic - Next topic

Paul Squires

I just finished implementing four new properties for Forms:

MinWidth
MinHeight
MaxWidth
MaxHeight

Those properties allow you to restrict the resizing of a Form to a defined minimum and/or maximum size. Basically, it creates values in the WM_GETMINMAXINFO windows message.

...and you will all be happy to hear that I am also in the process of implementing the automatic control resizing routines. Doug McDonald turned me on to a VB activex control (ResizerVT) that has a pretty simple but powerful means of specifying resize instructions for each control. I will use that model for the new FireFly resize code. Combine that with resize code that I have received from Patrice Terrier, Don Dickinson, and David Kenny and I should have this new functionality in FF3 pretty soon.
Paul Squires
PlanetSquires Software

Robert Eaton

That's a great feature to have built in!

Thanks!



Martin Francom

That will definately be useful.   How will it effect current FF3 projects?   Will we have to go into each form and set those values?   Or will the default value of 0 zero tell FF to ignor the setting?

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

Quote from: Marty Francom on January 24, 2010, 12:49:09 AM
That will definately be useful.   How will it effect current FF3 projects?   Will we have to go into each form and set those values?   Or will the default value of 0 zero tell FF to ignor the setting?

The properties will just magically appear for your Form like any other property (the values will be zero). Adding new properties to existing built in controls require no user intervention, unlike external custom controls which need their *.ctl control files manually modified.
Paul Squires
PlanetSquires Software

John Montenigro

Quote from: TechSupport on January 24, 2010, 11:50:33 AM
The properties will just magically appear for your Form like any other property (the values will be zero).

What would be the meaning of zeroes in those Properties?
-jhm

Paul Squires

Quote from: John Montenigro on January 26, 2010, 02:27:36 AM
What would be the meaning of zeroes in those Properties?

Zero just means that the property has no effect. That is, no code is generated for those properties that will affect the WM_GETMINMAXINFO message.
Paul Squires
PlanetSquires Software