Child Form creation lazarus / 31-LCL ---------------------------------------------------------------------- chucky · 2013-06-04 19:00 I am Creating a form dynamically which in turn creates another form if it was open when the application was closed. The child form is created in the parent's contructor createnew. The parent form shows itself after creating the child thus hiding it. I wrote an OnCreate event handler to call Child.BringToFront or Child.Show but this doesn't work as the Parent apparently has not called its own show proc until after the OnCreate event fires. How can I ensure the child has a higher Z order than the parent? ---------------------------------------------------------------------- Blaazen · 2013-06-04 19:09 You can put Child.Show to Parent.OnShow instead of Parent.OnCreate. Or use Child.ShowModal. (I didn't test.) ---------------------------------------------------------------------- taazz · 2013-06-04 20:11 Code: [Select]ChildForm.PopupParent := ParentForm;works on windows and GTK does not work for QT ---------------------------------------------------------------------- zeljko · 2013-06-06 18:37 Quote from: taazz on June 04, 2013, 10:11:41 pmCode: [Select]ChildForm.PopupParent := ParentForm;works on windows and GTK does not work for QT Then open an issue about it and attach example. ---------------------------------------------------------------------- taazz · 2013-06-06 18:41 It's not supported by the QT library at all, not even under C++ it is a design issue. I do not think it would help to open an issue for lcl when the underline library does not support it.