Yes they can be, but *I* am not able to get them to work without them flickering 10x a second during resizing.<br><br>Do I put it in the parent's OnResize? Or the child's?<br><br>Also, for each of my panels I must write a new "onresize" code.<br>
<br><br>BUT the anchoring system can be modified to do this... <br><br>Select (for each anchor) 2 points, and a %. So:<br><br>Panel1 contains 2 listboxes...<br><br>Listbox1 Topanchor = Panel1.Top, Panel1.Height, 1%<br>Listbox1.BottomAnchor = Panel1.Top, Panel1.Height, 33%<br>
<br>This is probably not the most eliquent, but shouldbe able to work?<br><br><br><div class="gmail_quote">On Sat, Jan 24, 2009 at 3:01 PM, Micha Nelissen <span dir="ltr"><<a href="mailto:micha@neli.hopto.org">micha@neli.hopto.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Reenen Laurie wrote:<br>
> For me, all I really want that's not supported via Lazarus at the moment<br>
> is the % of parent statement...<br>
><br>
> So<br>
> child1.top := 0% (1%?)<br>
> child1.bottom := 33%<br>
> child2.top := 34%;<br>
> child2.bottom := 100%;<br>
<br>
</div>These kind of calculations are easy in the OnResize event of the parent.<br>
A OnResize is also much more flexible, because you can keep some childs<br>
fixed and others proportional etc. Also the in between child space is<br>
preferred to be fixed e.g. 6 pixels or so. I think there are many<br>
variations on the 'proportional theme' to be liked that they cannot be<br>
put into a 'choose pull-down' property editor.<br>
<font color="#888888"><br>
Micha<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>o__<br>,_.>/ _<br>(_)_\(_)_______<br>...speed is good<br>_______________<br>I believe five out of four people have a problem with fractions.<br>