SYSTRAY Object Updated: June 30, 2005 With DIM or CREATE of a SYSTRAY object in $APPTYPE GUI, a minimized application appears in the systray. Usage: DIM/CREATE a SYSTRAY instance after the mainform is defined. Examples below fit with DIM tray as SYSTRAY Some methods (perform action; no return value) may be viewed as "write-only properties." METHODS Description ~~~~~~~ ~~~~~~~~~~~~~ DblClick tray.DblCLick = true 'restore window on double click tray.DblClick = false 'default, restore on single click Enabled tray.Enabled = true 'default, minimize to tray tray.Enabled = false 'optionally disables SYSTRAY Object Icon Sets tray icon when the application is minimized. Default is the mainform .Icon. tray.Icon = "icon2" 'icon2 is a $RESOURCE descriptor Restore Restores window. tray.Restore SendTo Minimizes window to tray. tray.SendTo Tip Set hint-like text displayed with mouse over tray icon. .Tip text may be any string expression. Default is null. tray.Tip = "HotBabe crowned Miss Compiler" EVENTS Description ~~~~~~ ~~~~~~~~~~~ OnRightClick Name of SUB or LABEL of subroutine containing a RETURN called on right click of minimized application icon in the systray. tray.OnRightCLick = tray_menu The POPUP statement might be used to display a popup menu in an .OnRightClick event procedure, such as tray_menu, above. Copyright 2005 James J Keene PhD Original Publication: June 30, 2005