Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ontop nonvcl (https://www.delphipraxis.net/121593-ontop-nonvcl.html)

EWeiss 30. Sep 2008 22:56


ontop nonvcl
 
was fehlt für eine Konstanze um ein mit Setparent aufgesetztes Window
on top zu bekommen ?
Irgendwie funktioniert das hier nicht

gruss Emil

Luckie 30. Sep 2008 23:00

Re: ontop nonvcl
 
Suchst du MSDN-Library durchsuchenSetWindowPos?

EWeiss 30. Sep 2008 23:09

Re: ontop nonvcl
 
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:

Zitat von Luckie
Suchst du MSDN-Library durchsuchenSetWindowPos?

Es geht nicht das ist ja mein Problem ;)

Delphi-Quellcode:
SetZorder(MainHandle, HWND_TOPMOST);
Delphi-Quellcode:
procedure SetZorder(Winhandle: HWND; UseOrder: Cardinal);
begin
    SetWindowPos(Winhandle, UseOrder, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE)
end;
Oder anders .. welche style benötige ich
Delphi-Quellcode:
    dwExStyle := WS_EX_LAYERED or WS_EX_TOOLWINDOW;
    dwStyle := WS_POPUP or WS_THICKFRAME or WS_OVERLAPPED;
EDIT:
Sobald WS_EX_LAYERED aktiviert ist bekomme ich das Object nicht mehr nach oben
Ohne geht es.

Es muß doch einen weg geben auf ein Bitmap das mit GDI gezeichnet wurde
ein anderes Object auf TopMost zu setzen :wall: :wall:
Der schwimmt zwichen der Form und den aufgesetzten Bild siehe Anhang

gruss Emil

EWeiss 2. Okt 2008 16:53

Re: ontop nonvcl
 
Noch jemand ne idee für mein problem ?
Ich will nicht die Form sondern das Objekt was mit Setparent eingefügt wurde on Top setzen

gruss Emil


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:42 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