On the form is standard TPageControl with one sheet, and inside this sheet is the label and the button. The label size is depend of its content (words are wrapped), and the offset between label and button is fixed thanks to the AnchorSide.
My question is — how to adjust the size of the form, to keep 16px height offset between bottom od the button and the bottom of the sheet, and keep 12px between the bottom of the TPageControl and the bottom of the form? In the attachment is the expected result.
Is there a way to set some properties or must I do it in the code? I checked the Anchor Editor, but it does not allow to do it. I tried to calculate the absolute position of the button and then set the size of the form, but everytime I got wrong form height.
To visualize what I need and shorten the problem to the minimum, I created a simple project — see the second attachment. To change the caption of the label, just append the value of the edit field (because the form size originally is fixed and the user can't change it).
Thanks in advance for help.