Jump to content

Close dynamic created form after destroy UniFrame


artem_niko

Recommended Posts

Good afternoon!

I am creating a form dynamically. On the created form I create and show my UniFrame.
Naturally, I prescribe Parent for my frame like this:

  MyFrame1:=TUniFrameClass(FindClass('TMyFrame1')).Create(MyDynamicForm);
  MyFrame1.Align:=alClient;
  MyFrame1.Parent:=MyDynamicForm;

How close MyDynamicForm when and after destroy of MyFrame1?

1. Destroy MyFrame1 (already working)

2. Close/destroy MyDynamicForm.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...