Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
How to keep a form always in the background (bottommost)
This article has not been rated yet. After reading, feel free to leave comments and rate it.
By assigning the desktop handle to be the form's parent, it will always be in the backgroud, even when it gets focused.  | |  | | procedure TForm.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
if Assigned(Application.MainForm) then
begin
Params.WndParent := GetDesktopWindow;
Params.Style := WS_CHILD
end;
end;
| |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|