The safest way to use an icon that I have found is to use an icon as a pict file and a mask as a pict file. In RB2006R4 you can assign the mask to the icon pict file and it just works when you assign the icon to the bevel button.
> I have a cross platform application that uses bevelbuttons > and I assign icons with bevelbutton1.icon=picture > > On the Mac this works fine (graphics are all PNG files). The > icons change as the code requests and display correctly. > > On Windows XP, well, nother story. Sometimes I get an icon, > usually about > 1/2 of one. I.e. It looks like the icon started from the > middle of the bevelbutton and ³wrapped² around (right to > left). So I get a big white bar in the middle, 1/2 icon on > each side of it. I had to add a check to see what icon was > displayed, because if I didn¹t and simply set in the ³same² > icon, it will advance it a few pixels to the left and show > it. Looks like a side scrolling game...:-) > > I also have some ³gray² icons that are shown if the > bevelbutton can¹t be used (because I don¹t think WINxp shows > dimmed icons yet like the Mac does). > The grey icons don¹t¹ display correctly either. > > I searched through the archive but didn¹t find anything. > Anyone got any guesses as to why or if they¹ve noticed the > same thing (which would be nice to know since I wouldn¹t be nuts). > > RB2006R4, MacPro 2.6, OS X 10.4.8 > > Mel _______________________________________________ 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>
