[lazarus] TStatusbar doesn't snap to bottom in IDE

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jun 10 08:32:03 EDT 2003


On Mon, 09 Jun 2003 16:28:37 -0500
Tony Maro <tony at maro.net> wrote:

> When dropping a TStatusbar on a form in design mode, it never snaps to 
> the bottom, however it DOES snap to when running the app.
> 
> It doesn't appear to be following the align=bottom directive in it's 
> constructor.
> 
> I've browsed the sources and am completely lost as to why (or why it 
> would for that matter.)

It's true, that the aligning code in the LCL is much more complicated than
the VCL. There are some simple reasons: 
The LCL can't rely on the synchronous win32 message ordering. When dealing
with the mix of X, gtk and all kind of window managers, messages can come at
any time and nearly any order. 
The LCL tries to allow changing nearly any property at any time. But in
contrary to win32 some changes do not take effect immediately (e.g.
clipboard, many form properties). 
So, the LCL tries to combine as many changes as possible in both directions.


Anyway, I fixed it. Anchors work a bit better too.


Mattias






More information about the Lazarus mailing list