Transparent frame with opaque controls Topic is solved

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

Transparent frame with opaque controls

Post by rajan_m » Tue Jun 05, 2012 1:49 pm

Hi,

I've a frame with wxStaticBitmap when i make the frame semi-transparent using wxTopLevelWindow::SetTransparent(), staticbitmap also gets transparent.
Is there a way we can make only the frame transparent and not the controls?.

Thanks in advance,

Have a nice day!
Rajan.M
Every exit is an entry somewhere else!

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

Re: Transparent frame with opaque controls

Post by doublemax » Tue Jun 05, 2012 2:02 pm

Is there a way we can make only the frame transparent and not the controls?
Not with wxWidgets methods.
Use the source, Luke!

rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

Re: Transparent frame with opaque controls

Post by rajan_m » Wed Jul 18, 2012 10:39 am

Hi doublemax,

Sorry for my late reply. I'm able to get transparent frame with opaque controls by just having empty paint and erase background event with wxBORDER_NONE style for the frame.

Thanks
Every exit is an entry somewhere else!

Post Reply