Mega Code Archive

 
Categories / Delphi / Examples
 

Don’t minimize secondary forms

This article demonstrates how to stop all forms in a Delphi app from minimizing when the main form minimizes. For each child form that you wish to remain visible do this type TSomeForm = class(TForm) protected procedure CreateParams(var Params: TCreateParams); override; end; implementation procedure TSomeForm.CreateParams(var Params : TCreateParams); begin inherited CreateParams(Params); Params.WndParent := GetDesktopWindow; end;