Solved

Desktop windows

Posted on 1998-11-16
3
181 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

740 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