jahlxx Posted July 3, 2018 Share Posted July 3, 2018 Hi. When I call show or showmodal to a form (form2), from other form (form1), - which is the parent of form2? - can I change the parent in runtime? - if yes, how and when? Thanks. Quote Link to comment Share on other sites More sharing options...
herculanojs Posted July 3, 2018 Share Posted July 3, 2018 as far as I know, it is not possible change the parent What are you needing to do? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted July 4, 2018 Author Share Posted July 4, 2018 I need to know wich is the parent of a form when call show or showmodal from another form. It seems that the parent is allways the mainform. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted July 4, 2018 Author Share Posted July 4, 2018 For example: If I do from form1: form2.show, the parent of form2 seems to be mainform But if I do: form2.parent := form1; form2.show; Then the parent of form2 is form1. I don't know why. Is possible this behaviour by default with no need of doing form2.parent := form1? Thanks. 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.