TDeactMinClose component
Minimize and close your application if it is idle for some time or if you
switched to another application and had forgot this one.
Properties
Events
Copyright © 1999 by Milic Tomislav e-mail milict@yahoo.com
Properties
property DeactivateToMinimize : Longint
Time (in minutes) to wait for you to return back in your application. If
expired, app will minimize
itself.
Default 0 means: Don't minimize my application when I switch to another
application.
property IdleToMinimize : Longint
Time (in minutes) to wait for you to return back and continue working within
your application. If expired, app will minimize
itself.
Default 0 means: Don't minimize my application even if I am not working
with it.
property MinimizeToClose : Longint
Time (in minutes) to wait for you to restore back your application. If
expired, app will close itself.
Default 0 means: Don't close my application, leave it minimized.
If you leave default values for all properties, (Don't minimize my application
even if I am not working with it and don't minimize my application when
I switch to another application and don't close my application, leave it
minimized) then DON''T USE this component at all, the Delphi will do the
rest for you.
Back to top
Events
There are only two events defined for this component. OnClose
and OnMinimize
event OnClose(Sender : TObject)
Specify what you have to do when the application is about to be closed.
Don't forget to explicitly close it after your closeup code.
Only if you don't define this event, application will be closed with
Application.Terminate.
event OnMinimize(Sender : TObject)
Specify what you have to do when the application is about to be minimized.
Don't forget to explicitly minimize it after your code.
Only if you don't define this event, application will be minimized
with Application.Minimize.
Back to top.