Jump to content

Create uniForm In Runtime set Parent - HELP


Recommended Posts

something like this? this is in other topic: http://forums.unigui.com/index.php?/topic/7329-create-uniform-in-runtime-set-parent-help/



form := TUniFormClass(FindClass('TUniForm1')).Create(UniApplication);
form.Parent := UniTabSheet1;
form.Align  := alClient;


This could be a good solution, but:


I have tested, but the app, shows form and form1. Is because if form1 code are sentences that references form1, like;


   with form1 do begin




I don't know how to solve this.


cout use the same name, but this raises a compilation error: form1 := TUniFormClass(FindClass('TUniForm1')).Create(UniApplication);


Other problem is references to form1, from other forms.


Any idea?

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.

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...