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 »

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: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Transparent frame with opaque controls

Post by doublemax »

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 »

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