Jump to content

Showmodal Result


ariopax

Recommended Posts

Hi

 

I have two From in Vcl ,In first Form i have a Button and an  Edit,In second Form  i have a Label and a Button,

I write in second form

procedure TForm2.Button1Click(Sender: TObject);
begin
  ModalResult := mrOK;
end;

And i first Form

procedure TForm1.Button1Click(Sender: TObject);
begin
  if form2.ShowModal=1 then
    Begin
         Edit1.Text:=Form2.Label1.Caption;
    End;
end;

How to i can do the procedure

 TForm1.Button1Click(Sender: TObject);

 in unigui?

 

 

Best Regards.

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.

×
×
  • Create New...