Jump to content

Recommended Posts

Posted

I do this:

  • i create at runtime different tabsheet in a UniPageControl 
  • in the tabsheet - i create UniContainerpanel -
  • the UniContainerpanel is the parent for a TuniFrame ..
  • i assign TuniFrame with: TUniFrameClass(FindClass(Fr_name)).Create(Self);

works :D

for my infos - i write in a string-array (called "frame_list") the name of created TuniFrames

Now the Problem:

how can i start in MainForm  a public procedure of a TuniFrames    :huh:  .. i allays become "OWNER FORM NOT FOUND"

 

i am searching somthing like MY PSEUDO CODE 

  for x := 1 to my_frame_count do
  begin    
   if frame_list[x] = 'Tf_mastertemplate' then
    begin
      ( [find the associated Thing of Tf_mastertemplate] as Tf_mastertemplate).send_resizing;
    end;

  end;

 

My Code

"framename" is in this example :='Tf_mastertemplate' // is a TUniFrame..

var
  Ts: TUniTabSheet;
  display: TUniContainerPanel;
  Fr: TUniFrame;
  Fr_name: String;
.....
    Ts := TUniTabSheet.Create(Self);
    Ts.PageControl := UniPageControl1;

    display := TUniContainerPanel.Create(Self);
    display.Parent := Ts;
    display.Align := alClient;

    Fr_name := framename;
    Fr := TUniFrameClass(FindClass(Fr_name)).Create(Self);
    Fr.Align := alClient;
    Fr.Parent := display;

    my_frame_count := my_frame_count + 1;
    frame_list[my_frame_count] := framename;

 

 

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