Restrictions on icons?
Rob Gayvert
rtg at rochester.rr.com
Sun Oct 2 22:29:54 UTC 2005
Cees De Groot wrote:
>We are polishing the L&F of our app, one of the things is to replace
>the window icon (WxTopLevelFrame>>setIcon).
>
>The old icon was a simple xpm, the new one a nice shiny png. Both are
>32x32, but nevertheless nothing shows when using the new icon (using
>"WxIcon fromImage: (WxImage ....)").
>
>Are there any restrictions on what is acceptable?
>
>
Not according to the docs, but I just tried a png your way, and got
nothing. Try using something like
aBitmap := WxBitmap fromImageFile: path.
anIcon := WxIcon new.
anIcon copyFromBitmap: aBitmap.
For some reason, this seems to work better.
.. Rob
More information about the Wxsqueak
mailing list