Jump to content

Recommended Posts

Posted

Was there any possibility or way to change the parent of a form created dynamically?

 

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

 

Was there any possibility or way to change the parent of a form created dynamically?

 

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

 

 

This should already work.

Posted

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

      .....

   end;

 

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?

Posted

ok.

 

there is something I don't understand.

 

If I do in that way, and I changr the references to form insted of form1, the compiler raises errors. form1 not identified.

 

???

Posted

I'm trying to simulate the mainform in the all features demos, but without having a frame for every form.

 

Create the frame in run time and assignn a form to that frame, but I can't find the way to do this.

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