Re: Program closure
- From: erewhon@xxxxxxxxxx (J French)
- Date: Mon, 26 Sep 2005 10:34:26 +0000 (UTC)
On Mon, 26 Sep 2005 10:03:19 +0200, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> wrote:
>"Tim Cogher" <tim.cogher@xxxxxxxxxx> wrote in message
>news:11jb09m3avf8kb0@xxxxxxxxxxxxxxxxxxxxx
>
>> I am trying to force any users of my program to close it using the
>> Exit menu item and not simply stop the program using the top right
>> red cross icon ( in Win XP).
>For Gods' sake, why?
Actually I once wrote a little accounting system (sales) for a small
publisher and after a few weeks using it they asked me to disable the
Form Close [X]
They said that they got a bit 'click crazy' and tended to hit the Form
Close rather than Minimize.
Rather than giving them an irritating 'Are You Sure ?' Dialog I
obligingly disabled Form Close and gave them a ruddy great button on
the bottom right of the Form, which was well away from any normal
rodent activity.
In this case, the OP just needs to point all activity to one procedure
and do his tidy up there.
Although, depending on the App it might be rather neat to make a Form
Close exit store the existing state, so next time the user starts the
App it 'resumes' where they left off - while other forms of exit
'start at the beginning'.
.
- References:
- Program closure
- From: Tim Cogher
- Re: Program closure
- From: Maarten Wiltink
- Program closure
- Prev by Date: Re: Auto-saving the registry
- Next by Date: Pascal Look - help you understand your pascal unit file .
- Previous by thread: Re: Program closure
- Next by thread: Auto-saving the registry
- Index(es):