PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Paul Squires on January 23, 2010, 08:53:45 PM

Title: Min/Max Width and Height Form Properties
Post by: Paul Squires on January 23, 2010, 08:53:45 PM
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.
Title: Re: Min/Max Width and Height Form Properties
Post by: Robert Eaton on January 23, 2010, 10:17:17 PM
That's a great feature to have built in!

Thanks!


Title: Re: Min/Max Width and Height Form Properties
Post by: Martin 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?
Title: Re: Min/Max Width and Height Form Properties
Post by: Rolf Brandt on January 24, 2010, 04:37:19 AM
Good news!
Title: Re: Min/Max Width and Height Form Properties
Post by: Paul Squires on January 24, 2010, 11:50:33 AM
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.
Title: Re: Min/Max Width and Height Form Properties
Post by: John Montenigro on January 26, 2010, 02:27:36 AM
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
Title: Re: Min/Max Width and Height Form Properties
Post by: Paul Squires on January 26, 2010, 08:28:41 AM
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.