Hi Folks,
i searched the Forum but found nothing applying to my Issue (or more probably i used the wrong search-terms

)
As follows:
I have a Form, which has 3 GroupBoxes (further called GB1, GB2, GB3) side by side.
BorderStyle of the Form is bsSizable.
Anchors are set, MinWidth/MinHeight are set for each GB as well as the Form itself (Sum of all GB-MinWidths plus Distances between GB's plus Anchor-Distance to Form)
GB1 is anchored to the Form itself (Top and Left)
GB2 is anchored to GB1 (Top and Right-Edge of GB1)
GB3 is anchored to GB2 (Top and Right-Edge of GB2) and the Form (Right)
If the User now clicks to maximize the Form, only GB3 is resized to fit the Form (As expected).
How do i get all three GB's to resize proportionally to each other?
e.g. Initial Values --> Widths when Form is reduced to minimum Size (covered by Size-Constraints)
GB1-Width=250
GB2-Width=400
GB3-Width=600
I'm not talking about the Height of the Controls. That's covered through the Anchors.
I'm talking about the Width, which i'd like to resize proportionally to the Form's Width and to each other
Do i have to calculate the ratios and set the new widths in the FormResize-Event?
I'd expect a poor performance that way.
Or is there a property of the "Anchoring" i can use?
Hope i was clear enough