Horia,
Your problem is a complex one, and worse in recent versions of Windows.  I
always blame Microsoft for not getting it "right" and/or not making good
documentation available.  In fact Microsoft's own Office applications can
sit in front of their own dialog boxes, so I am hoping that future versions
of Windows do more to get it right and to allow developers to get it right.

You will find it very difficult to play with z-order if more than one
application is involved.  If they are all started from one application that
you have control of, your task may be easier.

There is actually a heap of documentation on MSDN, if you can find it.  (I
had a quick search to find them again, but there are a lot of irrelevant
z-order articles in MSDN too.)  Look for Windows function descriptions
rather than Office VBA articles.)  When you find the technical Windows
function articles, they explain z-order within and between applications,
foreground etc.  (Sorry I can't give you a specific link).

There was one z-order problem (using 2 programs simultaneously) that I never
did get the solution for, because it involved
_either_ setting a *global* Windows foregound timeout parameter, which I
would not ask my customers to accept,
_or_ one program had to start the other (ShellExecute) which I could not do
because I couldn't get the 3rd-party program to invoke my program.  I found
a way around it but it was a huge workaround.

I wish you luck, but the general problem may be more Microsoft's than yours.
If the programs are all written by you, it may not be so difficult.

Glen

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of [EMAIL PROTECTED]
Sent: Friday, 1 July 2005 9:31 PM
To: [email protected]
Subject: [delphi-en] Z-Order



I need to change the Z-Order of the main form.
The form supports BringToFront or SendToBack, however I need to send the
main
form one unit back only at a time, i.e. if Z position is 23, I need to make
it
22.
The need is to unhide a child form (dynamically created,) and displayed with
Show, which may go behind the main form; in this situation I need a menu
item
or a short-cut to move the main form back and unmask the child form.
SendToBack move it too much (I usually have 20 forms from different
applications on my desktop.)

Any ideas?

Horia




-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links










-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to