Why not disable the button or menu item as the first thing you do in the
launch code, and then enable it when that module completes?
Dave.
----- Original Message -----
From: Matthew Comb <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Monday, 17 May 1999 16:28
Subject: [DUG]: position of applications.
> Hello.
>
> This is a repeat of a bug that I had some time ago and that still haunts
me
> to this day. Maybe some of you gurus can give me a hand. (Please note, you
> will be considered a guru if you manage to solve this bug!)
>
> We have a Suite of applications in our system, all custom written in
Delphi.
> There is 1 main menu and about 800 modular programs of about 1-2mb each.
> Which amounts to a lot of apps.
>
> We use the main menu to launch the modular programs and then when the
> program is completed it returns focus to the main menu application.
>
> My problem is that some times when a module program is launched a user can
> click too quickly on the mainmenu again or double click and a second
program
> is run which should not be able to happen, in other words the user should
> not be able to choose the window order for the programs. I tried to fix
the
> problem by putting a delay of one second before a second program could be
> run from the main menu and also sent the main menu to the back of windows
in
> the onactivate method so that it could never be functional when a program
> was supposed to be running from it.
>
> Keeping in mind that because our system is so large (it has to be- lots of
> multimedia stuff) what is the best way to position applications and make
> sure that they are always on top of the main menu. There was a reason why
I
> couldn't just make the program applications be fsstayontop or whatever but
I
> can't remember what that was now. With the current bug and how I have
> horridly fixed it, you cannot have any other windows open when you launch
or
> you can get them popping up between the mainmenu and the module programs.
>
> Any help in this area would be much appreciated.
>
> Matt.
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz