Jump to content

ON SHOW IN tuniframe


wilton_educasoft
 Share

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

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.

 Share

×
×
  • Create New...