info-inventor
[Top] [All Lists]

Re: SoXt::mainLoop();

To: jarekr@xxxxxxxx (Jarek Rzepecki)
Subject: Re: SoXt::mainLoop();
From: Jonathan Lim <jlim@xxxxxxx>
Date: Tue, 20 Aug 2002 16:38:57 -0700 (PDT)
Cc: info-inventor@xxxxxxxxxxx
In-reply-to: <Pine.GSO.4.40.0208201600360.6019-100000@xxxxxxxxxxxxxx> from "Jarek Rzepecki" at Aug 20, 2002 04:11:00 PM
Sender: owner-inventor@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>