forked from liujianjun/tslediter
Update tslvcl.tsf
application
This commit is contained in:
@@ -530,10 +530,17 @@ type tapplication=class(tcomponent)
|
|||||||
function Notification(a,op);override;
|
function Notification(a,op);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if a=Fmainform and op="recycling" then
|
if op="recycling" then
|
||||||
|
begin
|
||||||
|
if a=Fmainform then
|
||||||
begin
|
begin
|
||||||
Fmainform := nil;
|
Fmainform := nil;
|
||||||
end
|
end
|
||||||
|
if FApplicationWindow=a then
|
||||||
|
begin
|
||||||
|
FApplicationWindow := nil;
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function createform(classname,varable);
|
function createform(classname,varable);
|
||||||
begin
|
begin
|
||||||
@@ -4951,8 +4958,7 @@ type tapplicationwindow=class(TWinControl)
|
|||||||
end
|
end
|
||||||
Function DoWMCLOSE(o,e);override;
|
Function DoWMCLOSE(o,e);override;
|
||||||
begin
|
begin
|
||||||
//Recycling();
|
Recycling();
|
||||||
DestroyComponents();
|
|
||||||
_wapi.PostQuitMessage(0);
|
_wapi.PostQuitMessage(0);
|
||||||
end
|
end
|
||||||
function DoCnNotify(o,e);override;
|
function DoCnNotify(o,e);override;
|
||||||
|
|||||||
Reference in New Issue
Block a user