delphi - Anchoring GUI components in FireMonkey -
Just started an agonautic test and there can be no way to create components with dynamic shape / position.
Update:
Simple Anchoring is not available in FM. You have to make TLayouts and have to align them, then they need to 'stick' by putting the control inside the panel. If you use the old version of builder or Delphi, then it will be the same as we used to do with TPNL.
This is the answer to your question. Anchor's property in VCL has apparently been changed into margin and padding (due to consideration of the performance) and I have received some documents on the XII (wiki). I doubt that the anchor will be put in a later date. Do the following to anchor two buttons (OK and cancel) below a form on the right. See the picture below for OK and Cancel button.
A small down on the form Coordinate the panel, tell approximately 40 height Set the 'margin' on the bottom panel to make a small space in which the buttons will be live, make sure you align the button for alerts. For example, the gap between the right edge of the form and the right right button is the difference of 15. Top and bottom margins were set to 12. This anchor is the rightmost button.
'Padding', unlike a margin, padding puts out of control, for the rightmost button, I added a padding of 20 on the left , it has two buttons Will be the middle place. For the second button on the left side of the first, we need to set the aligned property in alright, there is no need to adjust the padding or margin.
Comments
Post a Comment