You state that you are not assigning the icon. In which case the component uses Application.Icon
. But that will typically be an icon that is the wrong size for the notification area.
For the notification area you need to use a square icon with size determined by the SM_CXSMICON
system metric. The best way to get that is to call LoadImage
which allows you to specify the icon size. Once you have loaded the icon into an HICON
you can just write this:
AppTrayIcon.Icon.Handle := IconHandle;