systray icon with alpha chanle?

Mac OSX specific forum
wy328
User
User
Posts: 18
Joined: Sun Jan 15, 2012 3:08 am

systray icon with alpha chanle?

Post 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
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: systray icon with alpha chanle?

Post by wilbert »

Did you try a transparent png image ?
wy328
User
User
Posts: 18
Joined: Sun Jan 15, 2012 3:08 am

Re: systray icon with alpha chanle?

Post by wy328 »

wilbert wrote:Did you try a transparent png image ?
solved!thank you! :mrgreen:

Code: Select all

UsePNGImageDecoder()
Post Reply