artem_niko Posted May 21, 2022 Share Posted May 21, 2022 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. Quote Link to comment Share on other sites More sharing options...
zhyhero Posted May 21, 2022 Share Posted May 21, 2022 TMyDynamicForm(MyFrame1.Owner).Close --or free Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.