Sizing Issue with Gradient Form Header


Author
Message
Tim Dol
Tim Dol
Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
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. 
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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?
Tim Dol
Tim Dol
Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
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.

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search