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

Home » Public Forums » archive » GetLastChild
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: GetLastChild [message #73109 is a reply to message #72960] Thu, 21 October 2010 15:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Truong Le writes:

> I am trying to get of the last child within a parent tag. However, I
> always get the first child instead.

Get the first child of the parent, then look for
siblings until you get to the last, spoiled
child. That's the old that breaks the bank when
it comes to college expenses. :-(

sib = event.id
child = event.id
WHILE sib NE 0 DO BEGIN
sib = Widget_Info(child, /SIBLING)
IF sib NE 0 THEN child = sib
ENDWHILE
lastsib = child

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: FTGET error
Next Topic: Re: PostScript and TrueColor images

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

Current Time: Sat Oct 11 22:27:22 PDT 2025

Total time taken to generate the page: 1.28418 seconds