<div dir="ltr"><div><div><div><div>I prefer setting property Align to alTop. Although it is not so nice, it brings me a huge advantage. There is no need to set anchors, so it will be easy while adding/removing components. As a result, designing time will be reduce considerably. Additionally, you will no longer need to be worry about the appearance in different linguistic.<br><br></div>It will look like this (<a href="http://i.imgur.com/vEhYjP4.png">http://i.imgur.com/vEhYjP4.png</a>):<br></div></div></div><img style="margin-right: 0px;" src="http://i.imgur.com/vEhYjP4.png" height="390" width="482"><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-25 17:20 GMT+07:00 Henry Vermaak <span dir="ltr"><<a href="mailto:henry.vermaak@gmail.com" target="_blank">henry.vermaak@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Mar 25, 2015 at 10:52:01AM +0100, Torsten Bonde Christiansen wrote:<br>
> Is it possible by using align, anchor, or some third option, to<br>
> always make the two edits and the drop-down box align with the<br>
> widest of the three labels.<br>
><br>
> Since these labels will be translated to many languages I cannot<br>
> assume that the 2nd labels is the widest, hence anchoring the<br>
> filename edit to that label, and the drop-down and directory edit to<br>
> the filename edit, will make the controls overlap eachother.<br>
<br>
</span>This has been quite a big problem for me, too. The only solution I've<br>
found is to use a container, like a frame or a panel, that has the<br>
ChildSizing property. Then you can set the ChildSizing.ControlsPerLine<br>
to 2 and the container will take care of making sure that everything is<br>
aligned, as long as you add the controls in the correct order, which<br>
will depend on the ChildSizing.Layout setting.<br>
<br>
The pain comes when you need to change the controls, because the child<br>
sizing works on the order that the controls are added to the container.<br>
For this reason I usually do this in code.<br>
<br>
Henry<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</blockquote></div><br></div>