A
A
animr2015-12-04 13:44:30
Delphi
animr, 2015-12-04 13:44:30

Call child form in Delphi?

Good afternoon!
People prompt please how to CALL the child form in Delphi. The form is created, you just need to call it.
The following method doesn't suit me at all:
procedure TfrMain.CreateChildForm
(const childName : string);
var Child: TfrChild;
beginChild
:= TfrChild.Create(Application);
Child.Caption := childName;
because this method creates a new form on each click and then calls it, and I need to call My finished form.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2015-12-04
@animr

Oddly enough, create the form once. And then...
Show - Show.
Hide - Hide.
Make a modal request (the rest of the forms are temporarily unmanaged, we do not exit the function until the window is closed) - ShowModal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question