Little John wrote:Does my above code display my icon properly on your system?
Yes, it does. That's nice. But as I said:
If I compile with different versions, my icon looks different.
From item (5) of your Bug Report list, it says (in part):
"commands that worked on an earlier version of PureBasic but don't on the newest",
which is definitely the case here.
Compiling the exact same code with the exact same image files shouldn't produce different results, don't you agree? Please answer me that with a yes or no.
But, I think I worked out the problem. My transparent icon is used in conjunction with SetWindowColor(), with this code:
Code: Select all
SetWindowColor(MyWin,GetSysColor_(#COLOR_3DLIGHT))
When I remove that line, my icon background is no longer black. On my PC, #COLOR_3DLIGHT is not black (it's light gray RGB 227,227,227) so it's not getting applied correctly anymore.
I see Fred "fixed" SetWindowColor() recently (see
here) so I guess that command got broken. Fred?