🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9720

fsStayOnTop

#9720
From: Chris
Date: Sat, 19 Jun 2004 07:08
26 lines
1767 bytes
I want my second form to stay on top of all other applications.
If I set my main form's style to fsStayOnTop, it will let other apps over
both of my forms.
If I also set my second forms style to fsStayOnTop, it will keep the second
form on top of the first form but let other forms go over both forms.
If I only have the second form set to fsStayOnTop then it does the same
thing.

If I run a timer using:

if(!Form2->Active)
BringToFront();

It keeps it at the front, without having focus, but when I left click on the
tray icon, BringToFront() causes the popup menu to disappear and gives focus
to Form2 for some reason.
In OnPopUp I can disable the timer, however, there is no event telling me
when to enable the timer again, as the user doesn't necessarily click on any
popup menu item.




What I want it to do:
Keep the second form on top of all other applications
Not interfere with the tray icon popup.
Technical Details
Message-ID: <40d3e5e7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ad72a72c8c3adc7,start
X-Google-Attributes: gid10cc67,public
From: "Chris" <Chris8852@adelphia.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: fsStayOnTop
Date: Sat, 19 Jun 2004 03:08:18 -0400
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.70.173.144
Message-ID: <40d3e5e7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087628775 68.70.173.144 (19 Jun 2004 00:06:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail