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.
It will look like this (http://i.imgur.com/vEhYjP4.png): 2015-03-25 17:20 GMT+07:00 Henry Vermaak <[email protected]>: > On Wed, Mar 25, 2015 at 10:52:01AM +0100, Torsten Bonde Christiansen wrote: > > Is it possible by using align, anchor, or some third option, to > > always make the two edits and the drop-down box align with the > > widest of the three labels. > > > > Since these labels will be translated to many languages I cannot > > assume that the 2nd labels is the widest, hence anchoring the > > filename edit to that label, and the drop-down and directory edit to > > the filename edit, will make the controls overlap eachother. > > This has been quite a big problem for me, too. The only solution I've > found is to use a container, like a frame or a panel, that has the > ChildSizing property. Then you can set the ChildSizing.ControlsPerLine > to 2 and the container will take care of making sure that everything is > aligned, as long as you add the controls in the correct order, which > will depend on the ChildSizing.Layout setting. > > The pain comes when you need to change the controls, because the child > sizing works on the order that the controls are added to the container. > For this reason I usually do this in code. > > Henry > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
