[comp.windows.interviews] Mixing InterViews with Xt

connolly@convex.com (Dan Connolly) (06/06/91)

I have a sort of incestuous (sp?) idea: I want interviews and Xt to
share a window. I've done it with another C++ toolkit and it worked well.

The strategy is to build an Xt app with a sort of dummy widget it in.
I take the window from the dummy widget and create an interviews world
or something inside it. Then I XtAddEventHandlers with my widget, and
pass the events I'm interested on to the interviews world.

From my understanding so far, all I have to do is sublcass world and
window with constructors like:
XtWorld::XtWorld(Display *dp) // create a world from an already opened display
and
XtWindow::XtWindow(XWindow xw) // create a window from an existing x window.

Does this seem feasible?

What I want to do is display structured text and graphics inside an Xt
application (or in some other application based on X windows.)

In a nutshell, I need to be able to make Glyphs etc. in an existing window
with an existing connection to the server, and pass my own events to these
Glyphs etc.

Dan