Why when I use create from with Await the button element is automatically selected?
When I create form without Await its ok ... the buton is unselected.
This is problem when you have mobile app and the app is scrolled to the selected button.
I do this in this way:
procedure TForm1.wbtn2Click(Sender: TObject); begin Form2 := TForm2.Create(Self); Form2.popup:=False; await(TForm2, Form2.Load()); await(TModalResult, Form2.Execute); end;
the simple project for repro:
CreateForm.zip (1.4 MB)
When you click button "create form with await" you can see that button is automatically selected after form show. (picture below)