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

Home » Public Forums » archive » widget cleanup problem
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: widget cleanup problem [message #51711 is a reply to message #51686] Tue, 05 December 2006 08:23 Go to previous messageGo to previous message
Braedley is currently offline  Braedley
Messages: 57
Registered: September 2006
Member
David Fanning wrote:
> Braedley writes:
>
>> My problem comes when I try to destroy the widget. I actually do make
>> it into the cleanup routine, but apparently label_base has already been
>> destroyed because I get the following error:
>> WIDGET_CONTROL: Invalid widget identifier: 0.
>> when I try to get the uvalue. I still want the user to be able to set
>> a uvalue for this compound widget, so setting the uvalue of base to
>> move_info won't work. Any suggestions?
>
> Now you are beginning to see one of the MAJOR reasons
> for writing all your compound widgets as objects. :-)
>
> But, here, just assign the CLEANUP (or even *another*
> CLEANUP) to the widget that actually has the pointer.
> There is no need to assign it to the compound widget
> TLB if there is nothing for it to do. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Why don't I ever see these simple solutions? And I may eventually
convert this to an object, but I think creating my first compound
widget is good enough for now.

Thanks
Braedley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: widget cleanup problem
Next Topic: Re: The opposite of David's 15lbs tome

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

Current Time: Wed Dec 03 06:40:45 PST 2025

Total time taken to generate the page: 0.64908 seconds