Hi guys,

you might remember a while back I posted a message about not allowing
multiple programs to run at once and someone mentioned a mutex and hooks and
stuff, well things seem to have worked them out on that front but I have a
new problem that someone might be able to help me find a fix for.

I have recompiled all our child apps to be fsstayontop with Delphi 4 which
has fixed most of our problems.

We have a Mainmenu app that requires a single click to run an application
from it. If the user double clicks by accident the application will load and
stay on top because it is fsstayontop but focus will lie with the mainmenu
programme. Is there a way that I can either set a hook in mainmenu so that
when it runs a program it cannot be focussed until the application sends a
message to say that it has completed OR in each application in the
ondeactivate event send a message to the application telling it to
reactivate or something similar.

Which is the most robust method?

Thanks for any help,

Matt.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to