erich.wanker Posted February 27, 2020 Posted February 27, 2020 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 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 .. 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; Quote
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.