Autor Beitrag
Shark
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 87

98, XP
D3, D5, D7
BeitragVerfasst: Do 26.08.04 12:37 
Hallo

habe zwei Formulare (Hauptformular und Toolformular)

ich möchte das Toolformular immer im Vordergrund meiner Anwendung haben, aber nicht im Vordergrund aller Anwendungen.
Auch dann wenn das Hauptformular aktiv ist!

Wie mache ich das?
Shark Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 87

98, XP
D3, D5, D7
BeitragVerfasst: Do 26.08.04 13:38 
hab das gefunden

funktioniert

with Self do {Form1,...}
SetWindowPos(Handle, // handle to window
HWND_TOPMOST, // placement-order handle {*}
Left, // horizontal position
Top, // vertical position
Width,
Height,
// window-positioning options
SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);

{* Other Values: }
HWND_BOTTOM
Places the window at the bottom of the Z order.
HWND_NOTOPMOST
Places the window above all non-topmost windows
HWND_TOP
Places the window at the top of the Z order.
HWND_TOPMOST
Places the window above all non-topmost windows.
The window maintains its topmost position even when it is deactivated.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 27.08.04 07:14 
Guten Morgen!

Dazu reicht es eigentlich die Eigenschaft FormStyle des Toolfenstern auf fsStayOnTop zu stellen.

Gruß
Tino
Shark Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 87

98, XP
D3, D5, D7
BeitragVerfasst: Fr 27.08.04 10:20 
Danke