[Lazarus] AdjustClientRect or GetLogicalClientRect: which one to override?

Bart bartjunk64 at gmail.com
Sun Mar 24 12:19:24 CET 2013


Hi,

For a component I'm building I need to let the subcomponents know that
(for aligning) they cannot use the entire client space.
(It is a panel descendant with asymmetrical bevels).

At first I tried AdjustClientRect but that did not work, so I tried
GetLogicalClientRect.
It all seems to work as expected. Subcomponents align to the new "borders".

Then the compiler told me (well, it did before, but I didn't notice)
that I forgot to add the override to AdjustClientRect. I fixed that
(and got rid of the overridden GetLogicalClientRect), and this also
works.

So, here's my question: which of these two methods is the "right" one
to override in this example? And what is the other method intende for?

Bart




More information about the Lazarus mailing list