MinimizeToTray method
Example |
acTrayIcon component.
|
procedure MinimizeToTray;
|
Call MinimizeToTray method to minimize your forms or whole application (if acTrayIcon component was dropped to the main form) to the system tray area. To restore minimized window from tray - call RestoreFromTray method.
|
|
However, acTrayIcon component can minimize forms to the system tray automatically when:
|
1 | User clicks MinimizeToTray button on the form's title bar (if additional CaptionButton is Visible)
|
2 | User selects "Minimize to Tray" menu item in the form's system menu (is ApplyToMenu property is True)
|
3 | User clicks standard Minimize button and Options property contains enabled oMinimizeToTray flag.
|
4 | User selects any menu item, assigned to PopupMenuTrayMinimizeItem property.
|
RestoreFromTray method;
|
IsMinimized, CaptionButton, SystemMenu, Options and PopupMenuTrayMinimizeItem properties;
|
OnMinimize and OnRestore events.
|