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

Home » Public Forums » archive » Is a Widget realized?
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
Is a Widget realized? [message #4147] Fri, 28 April 1995 00:00
feigin is currently offline  feigin
Messages: 3
Registered: April 1995
Junior Member
Dear colleagues,

As far as I understand, keyword REALIZED to Widget_Info function is used
to check, if Widget_ID is realized. But this function interrupts, if Widget_ID
was realized but has been destroyed later!

For example, the following simple commands in IDL work correct
(my comments to the right are in this text editor only):

IDL> base = Widget_Base() ;create Widget
IDL> print, 'base=', base ;check ID
base= 1
IDL> is_realized = Widget_Info(base, /REALIZED) ;check, if REALIZED
IDL> print, 'is_realized=', is_realized ;result of the checking
is_realized= 0

OK, but the same after realizing and destroying:

IDL> base = Widget_Base() ;create Widget
IDL> print, 'base=', basee ;check ID
base= 1
IDL> Widget_Control, base, /REALIZE ;realize the Widget
IDL> is_realized = Widget_Info(base, /REALIZED) ;check, if REALIZED
IDL> print, 'is_realized=', is_realized ;result of the checking
is_realized= 1
IDL> Widget_Control, base, /DESTROY ;destroy the Widget
IDL> print, 'base=', base ;check that the ID is still alive
base= 1
IDL> is_realized = Widget_Info(base, /REALIZED) ;check, if REALIZED, I'm expecting is_realized=0!!
% WIDGET_INFO: Invalid widget identifier: 1.
% Execution halted at $MAIN$ (WIDGET_INFO).



Does anyone know how to get the information "Is a Widget REALLY realized?",
ie how do I overcome the above problem?

Thanks.

Sincerely,
Michael.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Is a Widget realized?
Next Topic: Re: does curvefit() work ?

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

Current Time: Fri Oct 10 13:25:05 PDT 2025

Total time taken to generate the page: 0.96210 seconds