StrataFrame Forum
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
Window resize
http://forum.strataframe.net/Topic33349.aspx
By Ian Johnston
-
8/14/2016
Is there a setting to make the forms resize the contents when maximizing the window?
By Ivan George Borges
-
8/14/2016
Hi Ian.
Have you tried using the controls' Anchor property?
By Ian Johnston
-
8/15/2016
So you would have to adjust each object on the form individually?
By Ivan George Borges
-
8/15/2016
In general, yes. The form will have controls that will anchor relatively to their parent containers, which could be the form itself or other container objects. And of course, I assume we are talking about winforms.
By Edhy Rijo
-
8/15/2016
Ian, Ivan,
I use DevExpress Layout Managers to take care of these issues with control's anchoring. They have a different approach and it make take some time for you to get used to it, but it is totally worthy.
See these links:
See this video:
https://youtu.be/odYs4zfiZwM
https://documentation.devexpress.com/#WindowsForms/CustomDocument3406
Hope this help you.
By Ian Johnston
-
8/15/2016
Thanks
Edhy I have been looking at this, just wanted to verify before going to this solution.
By Edhy Rijo
-
8/15/2016
You are welcome Ian.
One thing I have to mention is that by default DevExpress will use their own controls from the wizard, but you can customize it to use the ones inherited by StrataFrame. I haven't done that since I really don't use the wizard, I most of the time drag and drop the controls from the toolbox.
Again, in my opinion, DevExpress has updated their layout control classes to make it easier to work with, but it may take some time to get use to it.
By Ian Johnston
-
8/15/2016
Appreciate the heads up. I am with you on dragging from the toolbox. Will devexpress recognize startaframe BO's?
By Edhy Rijo
-
8/15/2016
You have to use the controls from the "MicroFour StrataFrame Inherited UI.dll" assembly which has support for SF Binding feature. In fact I mostly use all my controls from either this assembly or direct subclass from DevExpress and add the binding myself.
What I do is to update and compile the "MicroFour StrataFrame Inherited UI" with the version of DevExpress I am using and then update my SF projects.
If you going this way, let me know and I give you some tips on how I do to keep up with several versions of DevExpress.
By Thomas Holste
-
8/18/2016
Hi Ian,
I am using this resize-control/assembly and it works well except that there are problems with multiline-textboxes and the Enter-Key.
http://www.soft-group.it/
" target=_"blank" class="SmlLinks">
http://www.soft-group.it/
Best regards
Thomas