Is256ColorTrayIconAllowed function
System Information routines |
acUtils
|
function Is256ColorTrayIconAllowed: Boolean; // returns True if WinXP or higher
|
The Is256ColorTrayIconAllowed function helps to determinate whether current OS allows to show 256-color icons in the system tray area.
|
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.
|
function Is256ColorTrayIconAllowed: Boolean;
|
begin
|
Result := not (GetOS in [os95, os95OSR2, os98, os98SE, osNT3, osNT4, os2K]);
|
end;
|
Icon, Icon16 and ImageList properties of acTrayIcon component.
|
IsNT, IsWin2k and GetOS functions; acSystemInfo component.
|