Is256ColorTrayIconAllowed function
System Information routines
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function Is256ColorTrayIconAllowed: Boolean; // returns True if WinXP or higher  

Description
The Is256ColorTrayIconAllowed function helps to determinate whether current OS allows to show 256-color icons in the system tray area.  

Note
iiinfo As you may know, operating systems such as Win95, Win98, WinNT and Win2000 can only display 16 colors when you write icons to the system tray, however WinME and WinXP can display 256 color icons.  

Original code
function Is256ColorTrayIconAllowed: Boolean;  
begin  
  Result := not (GetOS in [os95, os95OSR2, os98, os98SE, osNT3, osNT4, os2K]);  
end;  

See also
Icon, Icon16 and ImageList properties of acTrayIcon component.  
IsNT, IsWin2k and GetOS functions; acSystemInfo component.