On Fri, 11 May 2007 22:21:53 +0100 Sam Liddicott <[EMAIL PROTECTED]> wrote:
> Well spotted. > > These days such metric gathering should be done lazily and in a way > that the metrics can be invalidated and lazily regathered again, such > as when theme font sizes change etc. Yes. > Windowed controls should at least defer such stuff until createwnd > time, but I don't know when plain tcontrol should expect to be able > to do it. Its not even afe during the first paint as it might not be > painting to the screen dc. Can you give an example, where a first paint message is not on the screen dc? > Maybe tcontrols auto to have a method called when their parent's > handle gets created; this wouldn't solve the lazy metrics problem, > but would give controls a clear and clean place do do such metric > gathering. There is ParentFormHandleInitialized. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives