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.
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 » Wed May 29, 2013 12:35 pm

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 (4.49 KiB) Viewed 4548 times

User avatar
Posts: 15849
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWidgets windows version / linux version difference (wx

Post by doublemax » Wed May 29, 2013 12:42 pm

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