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

Home » Public Forums » archive » Validate widget id
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
Validate widget id [message #30521] Mon, 06 May 2002 03:08 Go to next message
GuidoVent is currently offline  GuidoVent
Messages: 8
Registered: September 2001
Junior Member
Hello,

I want to check, if a certain widget is destroyed. But if I use
wtget(...,/destroyed) an error is raised when the widget is already
destroyed.
I use PV-Wave 7.5 on Windows NT.

Any suggestion?

Regards,

Guido
Re: Validate widget id [message #30595 is a reply to message #30521] Tue, 07 May 2002 06:45 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Guido Vent wrote:
>
> Hello,
>
> I want to check, if a certain widget is destroyed. But if I use
> wtget(...,/destroyed) an error is raised when the widget is already
> destroyed.
> I use PV-Wave 7.5 on Windows NT.
>
> Any suggestion?
>
> Regards,
>
> Guido

Dear Guido

next trial,

I don't know much about PV-WAVE but I hope you have something like
CATCH or ON_ERROR

May be something like this will do the job

FUNCTION is_valid,id

errvar=0
CATCH,errvar
IF errvar NE 0 THEN RETURN,0
WIDGET_CONTROL,id,get_value=v


RETURN,1
END


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: Validate widget id [message #30596 is a reply to message #30521] Tue, 07 May 2002 06:25 Go to previous messageGo to next message
GuidoVent is currently offline  GuidoVent
Messages: 8
Registered: September 2001
Junior Member
Hallo Reimar,

thank you, but the widget_info is not implemented in PV-Wave.

Guido
Re: Validate widget id [message #30618 is a reply to message #30521] Mon, 06 May 2002 06:44 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Guido Vent wrote:
>
> Hello,
>
> I want to check, if a certain widget is destroyed. But if I use
> wtget(...,/destroyed) an error is raised when the widget is already
> destroyed.
> I use PV-Wave 7.5 on Windows NT.
>
> Any suggestion?
>
> Regards,
>
> Guido

Hi Guido,

you can use a keyword for widget_info:

VALID_ID

This keyword applies to all widgets.

Set this keyword to return 1 if Widget_ID represents a
currently-valid widget. Otherwise, 0 is returned.


Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: Validate widget id [message #30720 is a reply to message #30595] Tue, 07 May 2002 23:22 Go to previous message
GuidoVent is currently offline  GuidoVent
Messages: 8
Registered: September 2001
Junior Member
Dear Reimar,

I can say ON_ERROR_GOTO, but the error doesn't get catched. Either a
message is printed, saying "Invalid widget" or a message window comes
up, saying "Segmentation violation encountered".

It's not easy...

Guido
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Gamma Random numbers
Next Topic: Re: where can I find them

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

Current Time: Fri Nov 28 09:42:21 PST 2025

Total time taken to generate the page: 0.01545 seconds