On Sun, 24 Mar 2013 12:19:24 +0100 Bart <[email protected]> wrote:
>[...] > 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? The LCL uses the output of GetLogicalClientRect as input for AdjustClientRect. AdjustClientRect: http://wiki.freepascal.org/Autosize_/_Layout#AdjustClientRect GetLogicalClientRect: http://wiki.freepascal.org/Autosize_/_Layout#Scrolling So, you can use either AdjustClientRect or the ChildSizing properties. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
