Page 2 of 2

Re: wxWidgets windows version / linux version difference (wx

Posted: Wed May 29, 2013 12:35 pm
by gabre
Using staticbitmap instead of buttons:
1, I create a Mask with a circle (this will only allow the outline of the circle to be seen)
(I use a brush like this: {0,0,0} colour, style: ?wxTRANSPARENT)
2, I create a black pic and make my Mask to be its mask
3, This will be the Label of the staticbitmap

It looks like this: (I changed back the background colour of the panel to system default)
stbitmap.png
stbitmap.png (4.49 KiB) Viewed 5069 times

Re: wxWidgets windows version / linux version difference (wx

Posted: Wed May 29, 2013 12:42 pm
by doublemax
To make sure that there is no problem with the mask creation, can you test with a "real" transparent image, e.g. the toucan.png from the wxWidgets "image" sample?

Maybe you could make the bitmap so that the circle touches the edge of the control. That way the white border would be less noticable.