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

Home » Public Forums » archive » Re: how to find the TLB of a widget
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: how to find the TLB of a widget [message #18405] Thu, 23 December 1999 00:00 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
----------
In article <38613EC5.71E5AF2C@cornell.edu>, Jonathan Joseph
<jj21@cornell.edu> wrote:


> Is there a simple way (other than recursively getting the parent)
> to find the Top-level base of a widget. I don't have an event
> structure to query (which stores it as one of it's fields).
>
> It seems that it should be obtainable in one fell swoop using
> widget_info or widget_control, but I can't seem to find
> it if it is there.
>
> Shall I bother to write the routine get_tlb (OK, I've already
> written as it is so trivial) or does such already exist.
>
> -Jonathan
>
>

You don't need recursion... How about (given a widget dw).

repeat begin
tlb=dw
dw=widget_info(dw,/PARENT)
endrep until dw eq 0


JD
[Message index]
 
Read Message
Read Message
Previous Topic: idl 5.3 runtime on idl 5.2 system work?
Next Topic: Re: Strange memory problem (/nozero) weird

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

Current Time: Thu Oct 09 15:56:21 PDT 2025

Total time taken to generate the page: 2.56098 seconds