Solved

Desktop windows

Posted on 1998-11-16
3
176 Views
Last Modified: 2010-04-04
I have an app that has a popup status window.  I'd like the window to be able to stay on top, regardless of whether the main window is minimized or otherwise visible.  I'm halfway there with this code:

fstatus:=tfstatus.create(self);
application.normalizetopmosts;
SetWindowPos(fstatus.Handle, HWND_TOPMOST, 0,0,0,0,SWP_NOMOVE or SWP_NOSIZE or SWP_showwindow);
fstatus.Show;

This works if you click away from the main application, but if you minimize it the child window disappears too. I'd like to be able to keep it there the whole time.  
Any tips?
0
Comment
Question by:delphiexpert
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
jecksom earned 50 total points
ID: 1347072
Hi delphiexpert!

   fstatus.ParentWindow:=getdesktopwindow;

Jecksom

0
 
LVL 1

Author Comment

by:delphiexpert
ID: 1347073
Excellent!  I thought it would be simple.  Have 50 points, along with my thanks (you have no idea how long I've been trying to work that one out!)


0
 
LVL 1

Expert Comment

by:jecksom
ID: 1347074
hehe , just send it here and someone will solve problem for sure! :)

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
automatically logging in via bde delphi 3 68
proper way to parse text with delphi 7 100
SUM 2 INTEGER ARRAYS INTO 1 10 93
Unique identifier on a terminal server (rdp) 4 46
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now