Mega Code Archive

 
Categories / Delphi / Forms
 

Stay on bottom forms

Title: Stay on bottom forms Question: How do I force my form to stay on the bottom? Answer: You simply need to intercept the WM_NCACTIVATE windows message. Here's how: declaration: procedure WMNCActivate(var Msg: TWMNCActivate ); message WM_NCACTIVATE; definition: procedure TMainFrm.WMNCActivate(var Msg: TWMNCActivate ); begin Msg.Result:=0; end; Easy when you know how! (Spy++ is very useful for problems like this) tested on delphi 4/5 in all 32bit versions of windows.