On Mon, 20 Dec 2010, Hans-Peter Diettrich wrote:
Darius Blaszyk schrieb:
- implement a basic layout manager. While you're at it could you also
integrate it with the design editor? It will make our lives more easy.
There exist already a couple of layout managers in the LCL, but they are
totally isolated. It had been easy with the recent AutoSize rewrite to
implement a general layout manager interface. Since ChildSizing is already a
link to an external object, it could have been extended into a more general
layout manager link as well.
There is nothing magic with layout managers, they have to do nothing but
arrange their child controls, and to report the minimal and desired sizes to
their parent (with AutoSize). Every docking manager already is a layout
manager for its site, and its interface only lacks beforementioned AutoSize
capabilities.
I also thought this. In theory, a layout manager only needs to manipulate
some rectangles. Independent of a GUI, you could do it in the FCL. So I set
about implementing one.
Mattias Gaertner quickly convinced me that this view is too simplistic.
Under windows this may work; Under X, you have the window manager to take
into account, the underlying widget set which doesn't listen, 'AutoSize'
kicks in etc.
So I suggest you contact him about this prior to advocating your views.
Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus