Thanks for that, oh well I was hoping it was going to be a simple property I have to set :(

Image creation is not my strong point, I can create an (what just about passes for an Icon) and when I save it, it does have a transparent background, so I take it thats the Transparency of the icon sorted, so I would just have to deal with REALbaisic then?

Out of curiosity, does Realbasic support transparency in images without adding Masks?

Thanks

Mark

On 4 Feb 2006, at 14:25, Dixon, Tom wrote:

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>


_______________________________________________
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