I need to work with the folow structure:
TEdit inside TGdridPanel inside TGridPanel
In others words, exist a TGridPanel and in one of the cells I need to insert other TGridPanel.
In this internal TGridPanel a need to insert two TLabels and two TEdits, like this:
______________________
| TLabel1 | TLabel 2 |
______________________
| TEdit 1 | TEdit 2 |
______________________
When I resize the external TGridPanel, the internal one resize too, because the internal TGridPanel align is setup alClient, and when this happend I want resize the Label’s and the Edit’s like if them was anchored on left and right, but it doesn’t when they are inside the TGridPanel and if I set the align of the this internals components as alClient, they are distorted.
I can’t use other way, because I’m moving in a code very stable and do not have permission to change it.
Could please somebody help me?
Thank you.
Use the OnResize event of the inner TGridPanel to resize its child controls however you like. Use the inner TGridPanel’s ClientWidth/ClientHeight to help calculate the sizes if you want them to fill the entire area.