> > I have the following problem. I want to lunch standard OIV viewer
> > (SoXtExaminerViewer) from an application that uses tcl/tk. I would like
> > to be able to press tk button that would open OIV window. That is quite
> > easy to do but after Viewer window is created the SoXt::mainLoop(); is
> > called and it runs forever. So I can not give back control to tcl/tk main
> > function (Tk_Main) Is there a way to solve this problem. I can for example
> > use tcl/tk to view OIV scene but I would like to have
> > SoXtExaminerViewer... May be there is something I can replace
> > SoXt::mainLoop with?
>
> You don't necessarily have to call SoXt::mainLoop(). You can regard the viewer
> just the same as any other Motif widget; all input is handled using X events
> and callbacks. Look in .../libSoXt/src for details.
have a look at the file .../unix/tclXtTest.c in the tcl-distribution.
there is explained how to combine both event loops. in fact the
tcl/tk events are processed within the xt event loop.
gerd
tel. : +49-9131-85-29928
fax. : +49-9131-85-29931
email: sussner@xxxxxxxxxxxxxxxxxxxxxxxxxx
|