wilton_educasoft Posted September 15, 2016 Share Posted September 15, 2016 how to reproduce event onshow in tuniframe, this event not exist. after create, i need send same variables to tuniframe simple exemple function TMainForm.CreateFrame(c,Name: string):tuniframe; var f:tuniframe; begin f:=TUniFrameClass(FindClass(Name)).Create(Self); f.Align:=alClient; f.Parent:=FormSheet; FormSheet.caption :=c; result :=f; end; procedure TMainForm.UniButton1Click(Sender: TObject); var f:Tuniframe; begin f :=CreateFrame('Sample','TFrameSample'); TFrameSample(F).var1 :='xxxx'; --> cod execute after create, or show; TFrameSample(F).var2 :='yyyyy'; end; Quote Link to comment Share on other sites More sharing options...
Skepsis IT Posted September 16, 2016 Share Posted September 16, 2016 Hi, Perhaps if you create an override of the onshow method and pass as parameters the variables that you want; Correct me if I understand wrong Quote Link to comment Share on other sites More sharing options...
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.