Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-06

TStatusbar doesn't snap to bottom in IDE

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Tony Maro: When dropping a TStatusbar on a form in design mode, it never snaps to the bottom,…
Show quoted text 8 lines
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

Reply by email

Tony Maro

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.)

Thanks,

Tony

Reply by email