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
transparent window in osx with events passthrough
Re: transparent window in osx with events passthrough
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?
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
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
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
Hi,
Following changes solved the problem
void wxTopLevelWindowMac::DoMacCreateRealWindow()
{
---
if ( HasFlag(wxTRANSPARENT_WINDOW))
{
attr |= kWindowIgnoreClicksAttribute;
}
------------
}
toplevel.cpp
Thanks,
Gopi
Following changes solved the problem
void wxTopLevelWindowMac::DoMacCreateRealWindow()
{
---
if ( HasFlag(wxTRANSPARENT_WINDOW))
{
attr |= kWindowIgnoreClicksAttribute;
}
------------
}
toplevel.cpp
Thanks,
Gopi