_ Setting Z-Order Windows ?

Posted on 1999-07-25
Medium Priority
Last Modified: 2010-04-04
Hi. Suppose that there are forms 1, 2 and 3.

If I want to make form1 hide all the screen even the taskbar.

It means that it'll be the top-most window.

But it's not only that, I need that form 2 and 3 show on the top of form1 (always hiding the taskbar and other office stuff or IE4 shortcut bar).

How can I hide the taskbar with a form and make other 2 forms be on top of it ?

Thank you.
Question by:Wein
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 10

Accepted Solution

viktornet earned 100 total points
ID: 1391025
use SetWindowPos() and include the ZORDER constant...

also to hide everything try using the following code..

function SetDesktopArea(const NewArea: TRect; var OldArea: TRect): boolean;
    CallResult: boolean;
       CallResult := SystemParametersInfo(SPI_GETWORKAREA, 0, @OldArea, 0);

       if CallResult then
         CallResult := SystemParametersInfo(SPI_SETWORKAREA, 0, @NewArea,
         Result := CallResult;

then you might wann do this in OnCreate() of the form...

  r : trect;
SetDesktopArea(rect(0, 0, screen.width, screen.height), r);

and in OnDestroy() of the form..

SetDesktopArea(r, r);

or something like this..


Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question