Board index » delphi » Speed of creating tGraphicControl at runtime
Speed of creating tGraphicControl at runtime
2005-05-19 01:51:43 AM
Creating at runtime multiple instances of a descendant of tGraphicControl
seems very slow.
I've traced this to the point where the Parent property is set. There's a
chunk of complicated-looking code in in tWinControl.SetParent which is
missed out if csReading in ComponentState, but ComponentState is read-only
so I can not set it in my component.
What's the best way of speeding this up? My components do not need to move
or resize or anything complicated, but I need an awful lot which just sit
there and redraw themselves when necessary.