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

Home » Public Forums » archive » object newbie
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: object newbie [message #21204 is a reply to message #21141] Thu, 17 August 2000 00:00 Go to previous messageGo to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
...
> If you destroy the widget, you set self.tlb to -1, and in your
> cleanup method, you test IF self.tlb GE 0 THEN widget_control,
> self.tlb,/DESTROY.
Nearly irrelevant, but just for completeness:
Better put self.tlb to 0. Only 0 is garanteed to never be a widget ID.
(Somewere I saw this in the documentation (al least implicit))
and better check with widget_info(self.tlb,/VALID_ID).
Then you did not even need to set it to 0.
(But better do since a widget ID might be reused (perhaps same
probability as that it might be -1 ;-))
:-) marc
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Modal widgets and Sending Events
Next Topic: IDL: Texture mapping onto DEM

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

Current Time: Wed Oct 08 18:18:12 PDT 2025

Total time taken to generate the page: 0.00247 seconds