Francois Sillion (Francois.Sillion++at++imag.fr)
Tue, 17 Nov 1998 11:47:46 +0100
I have an application based on X-Motif with a Performer window using a
GLwMDraw widget. All works fine, with one little problem: when I resize the
window, which has the size efefct of resizing teh graphics widget, I can't
get Performer to adapt exactly to the size of the new widget.
I looked at the motif.c example from Performer, and found out the following
code:
/* set pfPipeWindow parameters from the Motif widget */
pfPWinWSDrawable(Shared->pw, NULL, Motif->gXWin);
pfPWinWSWindow(Shared->pw, NULL, Motif->xWin);
The parameters have been set after Motif elements were created: (the GL
widget is contained in a frame widget):
Motif->gXWin = XtWindow(glwidget);
Motif->xWin = XtWindow(frame);
In this example, when I resize the window, Motif resizes the frame and the
GL widget, and the Performer window now covers the entire extent of the
frame (a couple pixels larger than the GL window). This is not surprising
since the Window of the frame widget was explicitly assigned to the
pipewindow. However, when I try to set the window to that of the GL widget,
which seems logical, the resize has no effect on the pipewindow...
Would anyone have an idea
- why is the example setting the pipewindow's window to that of the
frame widget (i.e. the parent of the GL widget) ?
- how can I avoid covering the entire parent with the Performer
window upon resize?
Thanks a lot !
+------------------+--------------------------------------------------------+
| Francois SILLION | iMAGIS-GRAVIR/IMAG/INRIA, BP 53, 38041 Grenoble Cedex 9|
| ' | France. Tel: +33 4 76 51 43 54 - Fax: +33 4 76 63 55 80|
+------------------+--------+-----------------------------------------------+
| Francois.Sillion++at++imag.fr | http://www-imagis.imag.fr/~Francois.Sillion |
+---------------------------+-----------------------------------------------+
This archive was generated by hypermail 2.0b2 on Tue Nov 17 1998 - 14:09:53 PST