trayicon StartMinimized property
Return to Introduction  Previous page  Next page
Applies to
acTrayIcon component.  

Declaration
property StartMinimized: Boolean;  

Description
The StartMinimized property controls whether an application should be minimized on startup. Set StartMinimized to True if you would like to minimize your program on startup, or leave it False otherwise.  
 
tip Alternatively you can minimize application in OnShow event handler of your main form using following code (and acAppEvents component):  
procedure TMainForm.FormShow(Sender: TObject);  
begin  
  acAppEvents1.ShowMainForm := False;  
  acAppEvents1.ShowTaskIcon := False;  
  acTrayIcon1.MinimizeToTray;  
end;  
 
tip Also you can automatically minimize your application at startup by specifying "/minimized" parameter at startup command-line option. The acTrayIcon component automatically recognize it and set StartMinimized property to True, if "/minimized" option are specified.  

See also
MinimizeToTray method and acAppEvents component.