On Tue Aug 20 14:11:00 2002, jarekr@xxxxxxxx wrote:
>
> Hello!,
> 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.
Jonathan Lim _ Silicon Graphics _ Mountain View
GPS Graphics Computer Systems California, USA
|