trayicon RestoreFromTray method
Return to Introduction  Previous page  Next page
Applies to
acTrayIcon component.  

procedure RestoreFromTray;  

Call RestoreFromTray method to restore your forms or whole application (if acTrayIcon component is on main form) to the system tray area. To minimize windows to tray - call MinimizeToTray method.  
acTrayIcon component, however, can restore forms from the system tray automatically when:  
1User double clicks the tray icon and no popup menu assigned to PopupMenu property (If PopupMenu assigned, double click will invoke default menu action).  
2User clicks the tray icon once, if Options property contains enabled oOneClickRestore flag.  
3User selects any menu item assigned to PopupMenuRestoreItem property.  

See also
MinimizeToTray method;  
IsMinimized, Options, PopupMenu and PopupMenuRestoreItem properties;  
OnMinimize and OnRestore events.