StartMinimized property
|
acTrayIcon component.
|
property StartMinimized: Boolean;
|
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.
|
|
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;
|
|
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.
|
MinimizeToTray method and acAppEvents component.
|