ravedadave Posted April 17, 2020 Share Posted April 17, 2020 Hi, I am currently evaulating UniGUI and very impressed so far. I am using A UniTabsheet the same as the full example with a menu, when you click the menu item it loads the frame form via TUniFrameClass This is great, but I need more than one occurence, for example launch multiple copies of that tab via other means. The first one loads from the menu fine, but when I try to invoke another using this crude code: var Ts : TUniTabSheet; FrC : TUniFrameClass; Fr : TUniFrame; FClassName: string; begin Ts := TUniTabSheet.Create(Self); Ts.PageControl := UniPageControl1; Ts.Closable := True; //Ts.OnClose := TabSheetClose; //Ts.Tag := NativeInt(Nd); Ts.Caption := 'MOO'; Ts.ImageIndex := 0; FClassName :='TUniVehicleMain'; FrC := TUniFrameClass(FindClass('TUniVehicleMain')); Fr := FrC.Create(Self); Fr.Align := alClient; Fr.Parent := Ts; UniPageControl1.ActivePage := Ts; I get a warning specify "UniVehicleMain" already exists. I need to be able to create multiple tabs with the same "UniVehicleMan" Frame. Please could someone advise as I need to confirm what I need to achieve so I can purchase. Thanks, Dave Link to comment Share on other sites More sharing options...
zhyhero Posted April 18, 2020 Share Posted April 18, 2020 define an unique frame.name for you every single frame ,something like TunivehicleMain_1,TunivehicleMain_2, make every singgle frame's name diffrent and unique. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now