Autor Beitrag
delphiuserno1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: Mi 14.06.06 15:47 
Hi

Wie kann man es realisieren, das die Form immer im Hintergrund auf der Desktopebene bleibt? Wenn die im Vordergrund sein soll macht man das ja, indem man den Formstyle auf fsstayontop setzt aber wie macht man es das das im Hintergrund ist?

THX schon mal

Greetz
delphiuserno1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: Mi 14.06.06 19:43 
Hmm.... ich hab was gefunden mit dem man das machen könnte! allerdings kenn ich mich mit der Windows API nich so aus

man muss das irgendwie mit der

WM_WINDOWPOSCHANGING

machen und das dann mit der WindowProc Funktion.
Da kann man dann der z wert der From ändern! Aber ich hab absolut kein plan wie man das aufruft? Kennt sich einer mit sowas aus?
TmpDir
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 53
Erhaltene Danke: 3

Win7HP Win8.1 Deb/Ubuntu
C# [Delphi 6 Pro, Delphi 2005 PE, TurboDelphi PE]
BeitragVerfasst: Mi 14.06.06 22:13 
Das könnte man hiermit erreichen...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
  private
        procedure WMPosChange(var Msg:TWMWindowPosChanged); message WM_WINDOWPOSCHANGING;

  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

{ TForm1 }

procedure TForm1.WMPosChange(var Msg: TWMWindowPosChanged);
begin
  msg.WindowPos.hwndInsertAfter := HWND_BOTTOM;
end;

_________________
repeat :autsch: until :think:
delphiuserno1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: Do 15.06.06 11:41 
Genial! Funzt Super! Riesen thx