Solved

Desktop windows

Posted on 1998-11-16
3
182 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

717 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