StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Sizing Issue with Gradient Form HeaderExpand / Collapse
Author
Message
Posted 09/08/2006 4:13:24 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 11/27/2008 10:53:17 AM
Posts: 314, Visits: 1,276
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. 
Post #2706
Posted 09/11/2006 7:59:25 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/02/2008 4:42:46 PM
Posts: 2,686, Visits: 1,890
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?


www.bungie.net
Post #2719
Posted 09/11/2006 12:40:45 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 11/27/2008 10:53:17 AM
Posts: 314, Visits: 1,276
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.

Post #2736
Posted 09/11/2006 3:02:51 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/02/2008 4:42:46 PM
Posts: 2,686, Visits: 1,890
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.


www.bungie.net
Post #2738
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:23am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 15 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.