Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Aug : Starting an application with the main form invisible....

www.cryer.info
Managed Newsgroup Archive

Starting an application with the main form invisible....

Subject:Starting an application with the main form invisible....
Posted by:"Richard Bibby" (richard.bib..@profdoc.se)
Date:Fri, 5 Aug 2005 14:00:26 +0200

hej,

I want to write an application that has a form and a data module.  I want to
be able to start the application, but not see the form (i.e. running but
invisible).

Then I want to be able to send a message to the application, (create) or
show the form modally.  Showing it modally is important so I can respond to
the original windows message to let the calling application know its
finished.

Start MY application with form hidden. (Maybe not even created if possible)

A PARAENT application sends MY hidden application a message

MY application shows the form module.

User does some work.

Closes the form.

MY application responds to the PARENT application.

(it would also be an advantage if my application could contine to live after
the use has done his work so I can reduce the overhead of restarting each
time i run my application.)

This may be impossible because I figure that you can only send a message to
a window, and a Delphi application must always have a window that is
visible?

/Richard

Info

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive