Page 1 of 1

systray icon with alpha chanle?

Posted: Thu Jan 19, 2012 7:45 am
by wy328
i'm making my first app with pb4.6 under maces lion.
i try to use addsystrayicon but found that it doesn't support alpha chanle.
my question:
1. does AddSysTrayIcon only support .bmp under lion?
2. how can i make a icon with alpha chanle?
thanks a lot!

Code: Select all

AddSysTraIcon(1, WindowID(0), CatchImage(0, ?TrayIcon))
SysTrayIconToolTip(1, #appName)
 

Code: Select all

DataSection
  TrayIcon:
     IncludeBinary "res/mac16.bmp"
EndDataSection

Re: systray icon with alpha chanle?

Posted: Thu Jan 19, 2012 7:51 am
by wilbert
Did you try a transparent png image ?

Re: systray icon with alpha chanle?

Posted: Thu Jan 19, 2012 8:01 am
by wy328
wilbert wrote:Did you try a transparent png image ?
solved!thank you! :mrgreen:

Code: Select all

UsePNGImageDecoder()