wxWidgets windows version / linux version difference (wxList

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
gabre
Knows some wx things
Knows some wx things
Posts: 29
Joined: Sat Mar 02, 2013 9:45 am

Re: wxWidgets windows version / linux version difference (wx

Post 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 5066 times
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWidgets windows version / linux version difference (wx

Post 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.
Use the source, Luke!
Post Reply