comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » xwindow and ps_form questions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
xwindow and ps_form questions [message #14036] Tue, 19 January 1999 00:00
Brad Gom is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: more specifically
Next Topic: Re: YTITLE behaviour in Mac IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:13:56 PDT 2025

Total time taken to generate the page: 0.96011 seconds