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 #21197 is a reply to message #21141] Thu, 17 August 2000 00:00 Go to previous messageGo to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
marc wrote:
>
> ...
>> 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

I thought that object definition statement can have any number as a
field definition, and it won't matter, because when new object is
created, they all will be set to zero anyway. Top base ID will have to
be placed in that field once it is created, right?

Cheers,
Pavel
[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: Fri Oct 10 02:07:58 PDT 2025

Total time taken to generate the page: 0.72013 seconds