How to attach a wxWindow to a WindowRef (wxMac) ??
Stefan Csomor
csomor at advancedconcepts.ch
Sun Oct 8 21:08:16 PDT 2006
Hi
I will have to provide you with such a function, it cannot be done
outside wx code right now, because there are a few things that have to
happen in order to make things work later in wx.
There are the carbon event handlers that have to be added to the
WindowRef and I have to pick the content view of this foreign window.
And then the associate ... calls have to be made.
And then comes the tear down part : are you destroying this toplevel
window actively or do you get a notification at that moment?
Thanks,
Stefan
> -----Original Message-----
> From: Alfonso De Prisco [mailto:adeprisco at almateq.com]
> Sent: Montag, 9. Oktober 2006 00:06
> To: wx-users at lists.wxwidgets.org
> Subject: R: How to attach a wxWindow to a WindowRef (wxMac) ??
>
> Yes, I did that too for a couple of days with no success.
> I started with a generic wxWindows but in wxMac you cannot
> create a wxWindow object if you don't provide a parent (my situation).
> So I tried with wxTopLevelWindow derived classes wxFrame and
> wxDialog but with no success.
> Don't know why this relatively simple stuff has to be so difficult...
>
>
>
> -----Messaggio originale-----
> Da: Ryan Norton [mailto:wxprojects at comcast.net]
> Inviato: domenica 8 ottobre 2006 23.54
> A: wx-users at lists.wxwidgets.org
> Oggetto: R: How to attach a wxWindow to a WindowRef (wxMac) ??
>
> > Just derive in a similar way with your custom WindowRef and
> you should
> > be OK there.
>
> With the caveat that you may need to look into the
> implementation of wxTopLevelWindow as well.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list