Jump to content

ON SHOW IN tuniframe


wilton_educasoft

Recommended Posts

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;

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...