Im writing a forcasting application in Delphi7. I have most of it done but need to set some child window attributes from the Main Form.
It is an MDI. The Main Form has control and I want to set a child windows attributes BEFORE IT IS DISPLAYED. But I cannot seem to set the attributed as the compiler says the variable for the child is not yet initialized. How should this be done?
Child.m_dtDate := m_MyDate;
Child := TMDIChild.Create(Application);
Any ideas how to get around this would be greatly appreciated.