The transparency in a .png is not automatically supported. I believe you
need to use the mask property of a picture to create a transparent
picture which means creating a mask image for the toolbar icon as well. 

  Dim p As Picture
  
  p = New Picture(32,32,32)
  p.Graphics.DrawPicture MyIcon,0,0
  p.Mask.Graphics.DrawPicture MyIconMask,0,0

Then set the image property from the picture.

You would do the same thing to draw a transparent picture in a Canvas or
an icon in a BevelButton

Tom

> I'm having major problems, trying to put a transparent png as 
> the Icon for a toolbar item, for some reason it makes the 
> background white (this also seems to happen for a Canvas 
> background as well)..
> 
> I've looked through the Language Reference and cannot see any 
> option there, I've also tried *.gif and *.psd's, but all have 
> the same effect. The only workaround I can see is to take a 
> screen shot of the app, then use the toolbar background 
> colour as the background for my icons.
> 
> Thanks
> 
> Mark
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to