Re: Xt (Open Inventor) interaction problems

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Mon, 24 Feb 1997 21:51:53 -0600

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

From: rander+@postbox.ius.cs.cmu.edu

>I am trying to use an Open Inventor Xt widget (SoXtRenderArea) in
>combination with Xforms and am having some problems.

>Clearly, it would be preferable to add an events handler for the Xt
>window and then just be able to call fl_do_forms(), so that I am
>not wasting (CPU) time continually checking the events loop, and so
>that I am sure no events are lost or improperly handled.

When you create a window via Xlib or Xt (or fl_winopen for that
matter), xforms does not aware of these windows and
when events generated on these windows are received,
they are simply ignored unless xforms is told the
existence of these windows via
fl_set_event_callback/fl_add_event_callback.

Just use fl_set_event_callback (or its cousins on the
Xt widget) to set a callback function. Then whenever events occur on
these windows, the callback function will be called. Then you can
XtDispatchEvent inside the xforms' callback function. Untested,
but I don't see any reason why this will not work.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/