[plt-scheme] (no subject)

From: Paul Steckler (steck at ccs.neu.edu)
Date: Fri Nov 15 11:39:57 EST 2002

> Now, my question. The 3D rendering engine is an ActiveX control. I
> integrated it into the IDE using MysterX. Unfortunately, I find this
> solution quite unsatisfactory because it does not seem as well
> integrated as
> the other components. It is shown in its own top-level window that I
> can
> only hide and show using the 'show' method of the mx-browser% object.
> Has
> anyone tried to integrate an ActiveX component as a child window
> instead? It
> seems to me that it wouldn't be that hard to specify the parent window
> of
> the mx-brwoser% object at instantiation time, and pass corresponding
> window
> handle (HWND) to the CreateWindow function... But I may be wrong. A
> few
> advices would be of great help.

You could modify MysterX to accept a window argument when constructing
an mx-browser% instance.  You'd have to write code for finding the HWND
you want, and wrapping it in a Scheme object.  If you're always going to
be using the same window as the parent, you could modify MysterX to use
that HWND for you, without it showing up in Scheme.

A Windows child window is still separate from its parent, though, so
maybe that's not what you want.

-- Paul




Posted on the users mailing list.