I've come across this problem as well. At design time, I set the colors of Panel to greens, reds etc so it is easy to work with in the form designer. At runtime I reset those colors to clBtnFace. I can't remember which event handler I had to use. OnCreate or OnShow. I know one of them didn't work, though expected both to work equally well.
I'll double check and get back to you on this. Regards, - Graeme - On 3/19/07, Jeff Steinkamp <[EMAIL PROTECTED]> wrote:
When does the OnCreate event for a form run? Does this happen after the creation of just the form or the form and all of it child components? I am having a problem trying to restore font and color setting to a Tmemo control with values from a stored config file. In Delphi, I normally do this in the forms OnCreate Event, but in Lazarus, it apepars that the OnCreate event is run prior to creating of the child components because I am unable to restore these setting. They always return to the default settings of the component. If I run the routine to restore these setting in the forms OnActive event, they restore perfectly. Jeff Steinkamp - N7YG Tucson, AZ
_________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives