窗口创建 var frmForm :TfrmForm; begin if not Assigned(frmForm) then //检查窗口实例是否己经存在....这行很重要, frmForm :=TfrmForm.Create(Application); frmForm.Show ; end; 窗口关闭 在 窗口的 close 事件中.要释放窗口实例 Action :=caFree; 在 窗口 Ondestroy 事件中. frmForm := nil;
DELPHI技巧 动态创建窗体时,应该注意/
最新推荐文章于 2021-07-17 23:19:50 发布