Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi TopMost nur für MainForm? (https://www.delphipraxis.net/151888-topmost-nur-fuer-mainform.html)

Schorschi5566 6. Jun 2010 11:58


TopMost nur für MainForm?
 
Hallo Gemeinde,

erstmal Glückwunsch zum hübschen, neuen Design. ;)


Ich versuche gerade ein Form mit SetWindowPos dauerhaft im Vordergrund zu positionieren.

Mit 'ner anderen eigenen Anwendung klappt das problemlos. Allerdings ist es da das MainForm welches im Vordergrund bleiben soll.

Habe den Handle des Subforms auch schon mit FindWindow gesucht (und gefunden), trotzdem bleibt das Fenster nicht im Vordergrund. Auch FormStyle = fsStayOnTop ändert daran nichts.

Hat jemand 'ne Idee, wie man das hinbekommt? Bin etwas ratlos.


Viele Grüße,
Uwe

Schorschi5566 6. Jun 2010 13:51

AW: TopMost nur für MainForm?
 
Hat sich erledigt.

Hab's doch noch gefunden... und zwar hier: Form in Vordergrund holen

Delphi-Quellcode:
Application.NormalizeAllTopMosts;

hat's gebracht...


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz