[Lazarus] TFrame improvements
lazarus at kluug.net
Mon Nov 29 21:20:37 CET 2021
On 29.11.2021 21:09, Ondrej Pokorny via lazarus wrote:
> It's basically a very bad idea to force create the handle when the
> component is loaded (that is what you do when you access the canvas).
Check TCustomLabel.CalculateSize in lcl\include\customlabel.inc for the
solution how to solve this problem correctly in the component's code
without any modifications needed in T(Custom)Form or T(Custom)Frame.
There, the GetDC(0) is used for Canvas.Handle, so that the label's
parent's handle doesn't need to be created.
More information about the lazarus