In Delphi 7, I have a model dialog and i would like to display inside the main form. Right now Its displaying outside the main window.
Im new to Delphi and I was unable to find the answer.
I want to embed the modal form inside the main form.
When I coded Parent := Application.MainForm, the application runs and the form is loaded after that the application become struck in such a way that I cant do any anything.
Set
Positionproperty of the modal form topoMainFormCenter. Or specifyLeftandTopof the modal form to place it where you want to. A user still will be able to move the modal form.AFAIK a control cannot be enabled if it is a child of a disabled window. So
Parent := Application.MainFormwill not do the trick:ShowModalexplicitly disables all top-level windows before showing the modal form.