Solved

Desktop windows

Posted on 1998-11-16
3
175 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
Comment Utility
Hi delphiexpert!

   fstatus.ParentWindow:=getdesktopwindow;

Jecksom

0
 
LVL 1

Author Comment

by:delphiexpert
Comment Utility
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
Comment Utility
hehe , just send it here and someone will solve problem for sure! :)

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

6 Experts available now in Live!

Get 1:1 Help Now