Discussion:
Set NSView* (or NSWindow*) as parent (or wxWindow::SetHWND but for wxCocoa?)
z***@gmail.com
2014-10-06 13:06:55 UTC
Permalink
Hello,

How to set NSView* (or NSWindow*) as parent for e.g. my wxDialog?

For wxMSW am creating wxWindow setting its HWND and using it as a parent. I
want similar code for wxCocoa.

Thank you,
Zura
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-10-06 16:48:13 UTC
Permalink
Hi, Zura,
Post by z***@gmail.com
Hello,
How to set NSView* (or NSWindow*) as parent for e.g. my wxDialog?
For wxMSW am creating wxWindow setting its HWND and using it as a parent. I
want similar code for wxCocoa.
You don't need to create NSView/NSWindow.
You can just operate with wxWindow and use the same code for OSX/Cocoa.

Do you have any issues doing it?

Thank you.
Post by z***@gmail.com
Thank you,
Zura
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
z***@gmail.com
2014-10-06 17:10:25 UTC
Permalink
Hi Igor,

My wxWidgets/wxDialog based application is a plug-in for main application
(non-wx). I need to set main application's main window as a parent to my
wxDialog - and I'm successfully doing it on Windows, by finding its HWND,
creating wxWindow with this HWND and using this as a parent.

I need same functionality for OSX. I have NSView* or NSWindow* of that main
application (non-wx) and want to set this as a parent.

Thank you,
Zura
Post by Igor Korot
Hi, Zura,
Post by z***@gmail.com
Hello,
How to set NSView* (or NSWindow*) as parent for e.g. my wxDialog?
For wxMSW am creating wxWindow setting its HWND and using it as a
parent. I
Post by z***@gmail.com
want similar code for wxCocoa.
You don't need to create NSView/NSWindow.
You can just operate with wxWindow and use the same code for OSX/Cocoa.
Do you have any issues doing it?
Thank you.
Post by z***@gmail.com
Thank you,
Zura
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before
posting.
<javascript:>
Post by z***@gmail.com
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-10-06 17:04:25 UTC
Permalink
Post by z***@gmail.com
How to set NSView* (or NSWindow*) as parent for e.g. my wxDialog?
There is no built in way to do it. We have wxNativeContainerWindow in
wx/nativewin.h, but it's not implemented for OS X. Any contributions to it
there would be welcome and maybe the existing MSW/GTK code can give you
some ideas about how to do it.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...