Link to home
Start Free TrialLog in
Avatar of Software Software
Software SoftwareFlag for Austria

asked on

Delphi: How to place 4 equal sized panels on the form

How do I manage to place 4 equal sized panels on the form(top left, top right, bottom left, bottom right) without specifying fixed pixel data?
If the size of the form changes, the panels should still be the same size.
I've tried it with the align property, but it seems that this isn't the right solution.
Avatar of ste5an
ste5an
Flag of Germany image

Please rephrase your question.

Cause when these panels don't need to change size, then you simple put them on the form. No alignment, no auto-sizing, no anchors.
Avatar of Software Software

ASKER

They should change size but they must have equal width and height.
And the four panels should have same width like the form.
I mean panel top left and panel top right should have same width like the form and
panel top left and panel bottom left should have same height like the form
It should look like this with less margin.User generated image
From delphi 2007 and up - there are flowpanel component which can help you, put panels on it, set margins...
I need to correct myself - it is TGridPanel component.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.