[Lazarus] In windows 10 (64bit) Assigning TFrame.parent to a TForm took 10 more seconds than Windows 7 (64 bit)
serbod at gmail.com
Wed Dec 19 07:37:16 CET 2018
I encounter same trouble in Lazarus 1.0, and not remember, that it appear
in 1.2+ Maybe there some kind of code degradation?
1. Assign TFrame.Parent after creating TFrame, not in TFrame constructor.
2. When you create controls programmatically, make their parent (form,
frame, panel..) Visible := False
3. Do not create many similar frames instances, re-use already created
frames if possible. For example, for TPageControl with many similar frames
better using TTabControl and change content in one frame. And when that
frame not needes, just make it invisible.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus