StrataFrame Forum

Sizing Issue with Gradient Form Header

http://forum.strataframe.net/Topic2706.aspx

By Tim Dol - 9/8/2006

I have an 800x600 SF DevEx Maintenance form.  When this screen is maximized in run-time all the controls resize correctly, however when I start the screen in maximized state, via setting the form property or within the code itself, the Gradient Form Header remains at the normal width. 
By StrataFrame Team - 9/11/2006

Does the GradientFormHeader itself stay at the normal width, or does it resize itself, but the gradient does not redraw?  Also, is the GradientFormHeader set to Dock = Top?
By Tim Dol - 9/11/2006

GradientFormHeader set to Dock = Normal.  Everything redraws excepts the GradientFromHeader remains at the defined width.

I am able to recreate on a new StrataFrame Application.

Add a new SF DevEx Maintenance Form to a project. Set the form WindowState = Maximized.

Run the app.  You should see the results.

By StrataFrame Team - 9/11/2006

Aha, I didn't realize this was a DevEx Maintenance Form template... yes, I can reproduce it using those steps.  As it turns out, the form is not managing the size of its child controls even though the Anchor of the GradientFormHeader is set to both Left and Right. 

I added an extra event handler that will remove itself after it fires one time to resize the GradientFormHeader the first time the form resizes.  Seems to have fixed the problem, and it will be fixed in the 1.5 release that will be available next week.