xwindow and ps_form questions [message #14036] |
Tue, 19 January 1999 00:00 |
Brad Gom
Messages: 49 Registered: August 1997
|
Member |
|
|
I've been trying to add a xwindow widget to my widget program. I have
two problems:
1) when I use xwindow within a widget program (ie I call xwindow to run
a plot routine
when a certain widget event occurs) the plot works fine. I can
resize properly.
(xwindow works perfectly when I call it from a non-widget program)
But, when I try to configure a postscript file for output, I get the
following error:
> % XMANAGER: Caught unexpected error from client application. Message follows...
> % Variable is undefined: CANCEL.
>
It seems that the main xwindow routine is not waiting for the
ps_form routine to return its structure. The
error occurs on this line in xwindow:
> PRO XWINDOW_CONFIGURE_FILES, event
> WIDGET_CONTROL, event.top, GET_UVALUE=info, /NO_COPY
> ; What kind of file to configure?
> WIDGET_CONTROL, event.id, GET_VALUE=whichFile
> CASE whichFile OF
> 'Configure PostScript File...': BEGIN
> newkeywords = PS_FORM(DEFAULTS=info.ps, $
> LocalDefaults=info.pslocal, Cancel=cancel, Create=create)
> IF NOT cancel THEN info.ps = newkeywords
>
What special precautions do I need to take when including xwindow
in a widget program?
2) I want to register the xwindow when I create the main widget
hierarchy. How do I plot to the
existing xwindow, and retain the ability to resize and output?
Thanks
|
|
|