|
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 |
| 2 | User selects "Minimize to Tray" menu item in the form's system menu (is ApplyToMenu property is True)
|
| 3 | User clicks standard Minimize |
| 4 | User selects any menu item, assigned to PopupMenuTrayMinimizeItem property.
|
| RestoreFromTray method;
|
| IsMinimized, CaptionButton, SystemMenu, Options and PopupMenuTrayMinimizeItem properties;
|
| OnMinimize and OnRestore events.
|