https://blog.csdn.net/qq_20041779/article/details/135869656

 

在代码中创建form时,必须将其所有者设置为 UniApplication。

uses uniGUIApplication;

procedure TMainForm.UniButton2Click(Sender: TObject);
begin
with TUniForm2.Create(UniApplication) do
ShowModal();
end;