I am working on wxPython application; I need to make the wxPython application a MDI Child in the VB MDIForm.
I have created a Python COM Application Server. I use CreateObject() in VB to start my wxPython Application. I use SetParent() in wxPython to make the MDIForm parent to wxPython application.
The application becomes a child to VB MDI Form but it does not behave like a normal MDI Child.
I tried using window Handler (Hwnd) of the VBMDIForm to create a wxWindow Object using wxWindow_FromHWND() function. And using this object as parent while creating a wxMDIChildFrame but it gave an error saying that the parent should be of type wxMDIParentFrame.
I want the wxPython application window to be a MDI Child of the VB MDIFrame.
I am working on wxPython application; I need to make the wxPython
application a MDI Child in the VB MDIForm.
I have created a Python COM Application Server. I use CreateObject()
in VB to start my wxPython Application. I use SetParent() in wxPython
to make the MDIForm parent to wxPython application.
The application becomes a child to VB MDI Form but it does not behave
like a normal MDI Child.
I tried using window Handler (Hwnd) of the VBMDIForm to create a
wxWindow Object using wxWindow_FromHWND() function. And using this
object as parent while creating a wxMDIChildFrame but it gave an
error saying that the parent should be of type wxMDIParentFrame.
I want the wxPython application window to be a MDI Child of the VB
MDIFrame.
Does anyone have a solution to this??
The wxMDI classes have interactions with each other so they need to be the real wx MDI classes. You might try creating the child frame in VB and then creating a child of that window in wxPython...
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Dhruv Dhody wrote:
> Hi,
>
>
>
> I am working on wxPython application; I need to make the wxPython
> application a MDI Child in the VB MDIForm.
>
> I have created a Python COM Application Server. I use CreateObject()
> in VB to start my wxPython Application. I use SetParent() in wxPython
> to make the MDIForm parent to wxPython application.
>
> The application becomes a child to VB MDI Form but it does not behave
> like a normal MDI Child.
>
> I tried using window Handler (Hwnd) of the VBMDIForm to create a
> wxWindow Object using wxWindow_FromHWND() function. And using this
> object as parent while creating a wxMDIChildFrame but it gave an
> error saying that the parent should be of type wxMDIParentFrame.
>
> I want the wxPython application window to be a MDI Child of the VB
> MDIFrame.
>
> Does anyone have a solution to this??
>
The wxMDI classes have interactions with each other so they need to be
the real wx MDI classes. You might try creating the child frame in VB
and then creating a child of that window in wxPython...
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
···
----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Friday, February 28, 2003 11:43 PM
Subject: Re: [wxPython-users] wxPython application window as a MDI Child of the VB MDIFrame
I have made the wxPython application a normal child of the MDI Form in VB. It is within the MDI Form, the problem is it does not behave properly when I maximize or minimize it. Here is a code snippet