trayicon Icon16 property
Return to Introduction  Previous page  Next page
Applies to
acTrayIcon components.  

Declaration
property Icon16: TIcon;  

Description
The Icon16 property determines the 16-colors icon that is displayed in system tray area, in case if the component has detected that Windows version is lower than WinME/XP and can not normally display high-color image from Icon property.  

Note
iiwarning This property should be specified only if you are using 256-color image in the Icon property (which can normally displayed only in WinXP/ME and higher versions), but still want to make your tray icon looks fine in lower Windows versions (Win95/98/NT4/2000). Otherwise, if you have only 16-colors icon or just don't care about look in older Windows version, then specify just Icon property only, or use images from ImageList.  
 
tip Alternatively you can use just icons from ImageList, determinate the Windows version, and show 16-color icons on Win95/98/NT4/2000 and 256-color icons on WinME/XP and higher. To determinate whether the 256 colors icon are allowed in the system tray, you can use Is256ColorTrayIconAllowed function from acUtils unit.  

See also
Icon, ImageList and ImageIndex properties.