Page 1 of 1

transparent window in osx with events passthrough

Posted: Tue Nov 27, 2012 12:11 pm
by gopisk
Hi,

How to create a transparent window in OSX that passes the mouse events to underlying window?

I had seen the solution for windows in this forum
http://forums.wxwidgets.org/viewtopic.php?f=1&t=25785

But not able to get the same behavior in OSX.

Thanks,
Gopi

Re: transparent window in osx with events passthrough

Posted: Fri Nov 30, 2012 3:37 am
by protocol
You may have to go down to a Cocoa or Carbon level (under wxWidgets).

Do you mean transparent as in a custom shaped window? Or a window that is semi-transparent?

Re: transparent window in osx with events passthrough

Posted: Fri Nov 30, 2012 4:11 pm
by gopisk
Protocol,

Thanks for your suggestion. I am just using a dialog which is semi-transparent. That i am able to get it in mac by setting window SetTransparent(100);
I want that dialog should not catch the mouse events and events has to go to underneath windows.

thanks,
Gopi

Re: transparent window in osx with events passthrough

Posted: Mon Dec 03, 2012 1:55 pm
by gopisk
Hi,

Following changes solved the problem

void wxTopLevelWindowMac::DoMacCreateRealWindow()
{
---
if ( HasFlag(wxTRANSPARENT_WINDOW))
{
attr |= kWindowIgnoreClicksAttribute;
}

------------
}
toplevel.cpp

Thanks,
Gopi