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

Home » Public Forums » archive » Passing info and destroying 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
Passing info and destroying widgets... [message #15898] Mon, 21 June 1999 00:00 Go to previous message
dirk is currently offline  dirk
Messages: 15
Registered: March 1998
Junior Member
Here's something i can't figure out... I'm following the advice of DF and
communicating between my widgets with info structures. All is well, but now i
want to pass the info structure from the event handler back to the parent widget
with

WIDGET_CONTROL, event.top, SET_UVALUE=lines, /NO_COPY

and then destroy the widget. But you can't do this, because WIDGET_CONTROL (i
think) dereferences event.top so that

WIDGET_CONTROL, event.top, /DESTROY

fails since it doesn't know where to look. (you can't even put in a dummy to hold
the event.top number, the widget itself is gone from that id)

Unfortunately, you can't /DESTROY the top widget first and expect to set it's
UVALUE later, either. So what do i do here? I tried putting a flag in my
info structure to trigger the base widget destruction back in the widget
definition level (not in the event handler), but i can't figure out when the
program would be able to look at that newly inserted flag.

Thanks for your help. - Dirk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Screen printing
Next Topic: Indexing structures of different type

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

Current Time: Wed Oct 08 17:33:03 PDT 2025

Total time taken to generate the page: 0.00427 seconds