This site is temporarily down. Please come back. Have a window stay on top all the time
DelphiFAQ Home Search:

Have a window stay on top all the time

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

The following code results in a window that stays on top all the time,
even when the main application form is in the background:

Minitool := TMinitool.Create(Self);
Application.NormalizeTopMosts;
SetWindowPos(Minitool.Handle, HWND_TOPMOST, 0,0,0,0,
             SWP_NOACTIVATE+SWP_NOMOVE+SWP_NOSIZE);
Minitool.Show;

Content-type: text/html

Comments:

2009-03-25, 20:50:21
anonymous from China  
Great!
2010-03-04, 01:24:11
anonymous  
That's what I was looking for as my form got hidden when a modal form was oppened. Thanks
2012-12-30, 04:02:15
anonymous from Romania  



Keywords:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: