whats new ¦  programming tips ¦  indy articles ¦  intraweb articles ¦  informations ¦  links ¦  interviews
 misc ¦  tutorials ¦  Add&Win Game

Tips (1541)

Database (90)
Files (137)
Forms (107)
Graphic (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Math (76)
Misc (126)
Multimedia (45)
Objects/
ActiveX (51)

OpenTools API (3)
Printing (35)
Strings (83)
System (266)
VCL (242)

Top15

Tips sort by
component


Search Tip

Add new Tip

Add&Win Game

Advertising

62 Visitors Online


 
...prevent Windows from minimizing a Form?
Autor: Pascal Enz
[ Print tip ]  

Tip Rating (7):  
     


The Windows Taskbar function "Minimize all Windows" minimizes all Windows even if they don't have a minimize button.
The following code will prevent a form from minimizing through windows.

Die Funktion "Alle Fenster minimieren" aus der Windows Taskbar minimiert alle Fenster, auch solche die eigentlich keine Minimieren-Schaltfläche besitzen. Der folgende Code verhindert das Minimieren eines Fensters.

implementation

procedure 
TForm1.WMShowWindow(var Msg: TWMShowWindow);
begin
  if not 
Msg.Show then
    
Msg.Result := 0
  else
    inherited
;
end;


 

Rate this tip:

poor
very good


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners