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

Home » Public Forums » archive » Re: Dynamically adding and removing widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Dynamically adding and removing widgets [message #46469 is a reply to message #46467] Wed, 23 November 2005 09:58 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
> 4. One of my event handlers calls a procedure called
> show_phenomenon
>
> pro event_handler Event
> ----
> WIDGET_CONTROL,Event.TOP,SET_UVALUE=state,/NO_COPY
> show_phenomenon,.....,....,Event
> ----
> end
>

I think your problem is with the /NO_COPY keyword, this unidefines the
"state".
See PDF manual:

"However, it has the side effect of causing the source variable to
become undefined. On a “set” operation (using the SET_UVALUE keyword to
WIDGET_CONTROL), the variable passed as value becomes undefined. On a
“get”
operation (GET_UVALUE keyword to WIDGET_CONTROL), the user value of the
widget in question becomes undefined."

Then inside your "Show_phenomenon" procedure the "state" value is
undefined.


Bye :)

--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How should I mark annotations in multi plot window
Next Topic: compound widget for directory selection (no pop_up)

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

Current Time: Sat Oct 11 06:11:36 PDT 2025

Total time taken to generate the page: 1.03944 seconds