[Lazarus] Docking manager implementation

Reenen Laurie rlaurie at gmail.com
Sat Jan 24 17:18:09 CET 2009


Yes they can be, but *I* am not able to get them to work without them
flickering 10x a second during resizing.

Do I put it in the parent's OnResize? Or the child's?

Also, for each of my panels I must write a new "onresize" code.


BUT the anchoring system can be modified to do this...

Select (for each anchor) 2 points, and a %.  So:

Panel1 contains 2 listboxes...

Listbox1 Topanchor = Panel1.Top, Panel1.Height, 1%
Listbox1.BottomAnchor = Panel1.Top, Panel1.Height, 33%

This is probably not the most eliquent, but shouldbe able to work?


On Sat, Jan 24, 2009 at 3:01 PM, Micha Nelissen <micha at neli.hopto.org>wrote:

> Reenen Laurie wrote:
> > For me, all I really want that's not supported via Lazarus at the moment
> > is the % of parent statement...
> >
> > So
> > child1.top := 0%  (1%?)
> > child1.bottom := 33%
> > child2.top := 34%;
> > child2.bottom := 100%;
>
> These kind of calculations are easy in the OnResize event of the parent.
> A OnResize is also much more flexible, because you can keep some childs
> fixed and others proportional etc. Also the in between child space is
> preferred to be fixed e.g. 6 pixels or so. I think there are many
> variations on the 'proportional theme' to be liked that they cannot be
> put into a 'choose pull-down' property editor.
>
> Micha
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
o__
,_.>/ _
(_)_\(_)_______
...speed is good
_______________
I believe five out of four people have a problem with fractions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090124/f23a613e/attachment-0007.html>


More information about the Lazarus mailing list