[Lazarus] Message dialogs in Lazarus

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Tue Dec 21 14:28:40 CET 2010



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.




More information about the Lazarus mailing list