Database4YoU

Home ] Up ] News ] Applications ] YU applications ]

 

 

TDeactMinClose

Freeware with source!

Description

Minimize and close your application if it is idle for some time or if you switched to another application and had forgot this one.


Description Properties Events Download Feedback

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, MS will do the rest for you.

.
Description Properties Events Download Feedback

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.

Description Properties Events Feedback

Download

dimclose.zip ~6 Kb

Back to top

 
Copyright © 2001 Database4YoU                 Last modified: April 17, 2001