I have been struggling with obtaining consistent behaviour when minimizing
and restoring an application from code.

 

I have a supporting app which runs in a minimized state until activated by a
master application.  

The master app passes a windows message which the supporting app catches.
This event triggers the supporting app to process a file and then release
control back to the master app.  When the master app has regained control it
sends another widows message signifying completion.

 

When activated I want the supporting app to display a normal window with
progress messages and on receipt of the completing event minimize itself.  I
also have a cancel button which if pressed will cancel the file processing,
returning control to the master app and itself to a minimized state.

 

I have been using the form.WindowState property to control the presentation
of the supporting app.

 

The supporting app form does not have any Border Icons.

 

On my wakeup event

            Set the support apps 

form to Visible := true

                        form windowState := wsNormal

 

I get a processing complete event and in that I

            Set supportapp windowState := wsMinimized

 

The problem occurs when I minimise the form in XP the support app minimizes
to the bottom left hand corner of the screen above the task bar.  The
support app remains on the task bar as well.  I can double click on either
to restore them.

 

How can I get the app to minimize to the task bar only?  I am using Delphi
7.1, I don't know if this manifests itself on other versions of windows.

 

Help and advice would be much appreciated.

 

JohnB

 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to