New topic in General: 

Windows (Mac?) toolbar and PNGs

george - Sat Mar 29, 2008 4:21 pm

<http://forums.realsoftware.com/viewtopic.php?t=17183>
                                                                                
                                                                                
So we all know that the RB Windows toolbar control has a problem with 
displaying PNG files for icons (not sure if this affects Mac, it would be great 
if someone could confirm this...)

So what happens is that in RB2007R4 (and older version) a blue background is 
displayed for the PNG instead of being transparent.  So I've read in other 
posts to use the free PNG Utilities plugin 
(http://developer.chaoticbox.com/realbasic.php) -- but for the life of me I 
still can't get it to work...  Not sure if I'm doing something wrong or what, 
but here is the code I use in the toolbar.open event:

Code:dim tb as ToolButton

tb = new ToolButton
tb.Caption = "Accounts"
'SomeImage is a PNG file I imported into my project
tb.Icon = PNGu.GetPicture( PNGu.GetData( SomeImage ) )
me.Append( tb )


And it still uses a blue background!  Any ideas?

Thanks!                                 
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to