Article View: comp.windows.x.pex
Article #193Connecting PEX workstations to X windows via "connid"
From: Greg Huey - Aymer deGregory
Date: Fri, 11 Dec 1992 21:05
Date: Fri, 11 Dec 1992 21:05
46 lines
2043 bytes
2043 bytes
I am creating a widget with XtCreateManagedWidget of class formWidgetClass,
and then trying to get PEX SI to use this window as its drawing surface.
Follows is a code summary:
.
.
.
Pconnid_x_drawable connid;
Widget dform;
{X initilaization..blah blah blah}
{tform is the parent widget}
dform = XtCreateManagedWidget("dform", formWidgetClass, tform,
xarg,nxarg);
connid.display = XtDisplay(dform);
connid.drawable_id = XtWindow(dform);
popen_phigs(PDEF_ERR_FILE, PDEF_MEM_SIZE);
popen_ws(1, (char *)&connid, phigs_ws_type_x_drawable);
.
.
.
I then procede to try to use the opened workstation. Code that produces
a pretty multi-colored 3D cube fails to display anything -- the screen
remains black. In another program I use the same structures, the same
view representation, but I dont use X toolkit. This program works fine.
Here is what I do:
popen_phigs( PDEF_ERR_FILE, PDEF_MEM_SIZE );
connid.display = display = XOpenDisplay( NULL );
connid.drawable_id = XCreateSimpleWindow( display, blah blah blah);
.
.
.
popen_ws( 1, &connid, phigs_ws_type_x_drawable );
As I said, the 3D cube gets drawn w/o problems here. It seems to be the fact
that Im using the X toolkit...perhaps Im getting the values for
connid.display and connid.drawable_id incorrectly from the widget
superstructure? Has anyone ever dealt with this sort of thing before?
Can anyone suggest a reference or sample program that might provide insight?
Thanks
Greg
ggh@reef.cis.ufl.edu
ggh@qtp.ufl.edu
Technical Details
Message-ID:
<37896@uflorida.cis.ufl.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!tulane!uflorida!reef.cis.ufl.edu!gghShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!tulane!uflorida!reef.cis.ufl.edu!ggh From: ggh@reef.cis.ufl.edu (Greg Huey - Aymer deGregory) Newsgroups: comp.windows.x.pex Subject: Connecting PEX workstations to X windows via "connid" Message-ID: <37896@uflorida.cis.ufl.edu> Date: 11 Dec 92 21:05:38 GMT Sender: news@uflorida.cis.ufl.edu Organization: Univ. of Florida CIS Dept. Lines: 46 Nntp-Posting-Host: reef.cis.ufl.edu