I have a problem that I cannot solve, although I spend a lot of time on it.
I usually use GridPanels to align form controls. This, however, causes an annoying error. When the alignment mode of the GridPanel is alClient and I maximize its parent window, the GridPanel adjusts to the new size of this window, however, the controls located on the grid do not work. They remain in the same position as before resizing the window. This only happens when maximizing the first window. If the window is first manually resized, everything is in order. I think the grid adjusts its child controls after the second resize event (??).
What if the GridPanel is working correctly if it comes to this error? This may be enough to send him a message (but what message?), I do not know. I tried using Implement, Update, etc., but they did not help.
Thanks for your help in advance,
Mariusz.
alignment resize controls delphi tgridpanel
Mariusz schimke
source share