![]() |
Vordergrund bei nicht-hauptformular
hi,
ich hab in meinem programm ne splashscreen und n normales formular.. davon sollte das normale formular eigentlich immer on-top sein, hab auch schon ![]()
Delphi-Quellcode:
in das OnShow-Event eingebaut.. hat aber wie gesagt bei mir nicht funktioniert.. was hab ich falsch gemacht :roll:
SetWindowPos(Handle, HWND_TOPMOST, Left,Top, Width,Height, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
|
Re: Vordergrund bei nicht-hauptformular
ah, hab nochmal bissl inner dp gesucht und nen gefundenen code modifiziert:
Delphi-Quellcode:
das muss man halt nur noch als override prozedur deklarieren und es funzt :P
procedure TfrmMain.CreateParams(var Params: TCreateParams);
begin inherited CreateParams(Params); if Assigned(Application.MainForm) then begin Params.WndParent := Application.MainForm.Handle; Params.Style := Params.Style or WS_VISIBLE; end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:20 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-2025 by Thomas Breitkreuz