![]() |
Re: "Always in Back"
Diese Funktion wird automatisch von Delphi aufgerufen. Damit das allerdings dann auch tatsächlich passiert, mußt du sie als override deklarieren.
Delphi-Quellcode:
type
TForm1 = class(TForm) // [...] protected procedure CreateParams(var Params: TCreateParams); override; end; |
Re: "Always in Back"
Du sorry bei mir klappt das nicht, wenn ich es hier hin mache:
Delphi-Quellcode:
kommt die Fehlermeldung:
type
TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; XPManifest1: TXPManifest; RadioButton1: TRadioButton; protected procedure CreateParams(var Params: TCreateParams); override; end; private { Private declarations } public { Public declarations } end; Zitat:
Delphi-Quellcode:
kommt die:
type
TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; XPManifest1: TXPManifest; RadioButton1: TRadioButton; private { Private declarations } public { Public declarations } protected procedure CreateParams(var Params: TCreateParams); override; end; end; Zitat:
|
Re: "Always in Back"
Hi!
Wenn ich das richtig sehe, hast du da das "end;" nach dem Funktionskopf zu viel. Ciao Frederic |
Re: "Always in Back"
Hey danke, hat funktioniert... nur das Problem ist, dass mit dem Code das Form immer im Vordergrund bleibt mhh und ich will doch eigentlich genau das Gegenteil...
|
Re: "Always in Back"
hat jemand ne Idee?
|
AW: "Always in Back"
Falls hier nochmal jemand landet und zum gleichen Thema 'ne Lösung braucht:
Das macht man ohne Params und ohne Timer einfach so:
Delphi-Quellcode:
Dann bleibt das Ding hinten auch wenn man auf die Form klickt...
Privat
Procedure WindowPosChanging(Var MSG: TWMWindowPosMsg); Message WM_WINDOWPOSCHANGING; Procedure TForm1.WindowPosChanging(Var MSG: TWMWindowPosMsg); Begin If MSG.WindowPos.Flags And SWP_NOZORDER = 0 Then MSG.WindowPos.HWNDInsertAfter := HWND_BOTTOM; Inherited; End; (in D7 gehts ausgezeichnet) Nur weil das Thema alt ist heißt das nicht, dass es von Google oder der internen Suche nicht mehr gefunden wird... Daniel kann es ja wieder in die Versenkung kicken... Information ist wichtiger als Herumgezicke... nur um das mal gleich vorneweg zu nehmen... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:44 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz