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

Home » Public Forums » archive » Re: Work-around for the Shortcomings of Widget_Tab
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: Work-around for the Shortcomings of Widget_Tab [message #53707] Tue, 24 April 2007 07:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Joe@Zawodny.com writes:

> There is no way (that I can
> see in the documentation) to use either Widget_Info or Widget_Control
> to obtain the identity of the Widget_Base underlying a given tab. I
> have a work-around for this that is less than satisfactory.

This workaround feels a little too complicated for my tastes.
I think what I would do is use the event.tab field, which
you know is the index number of the child base, to fish
out the required base. You could do something like this
to identify the base widget:

CASE event.tab OF
0: theBase = Widget_Info(event.id, /Child)
ELSE: BEGIN
theChild = Widget_Info(event.id, /Child)
FOR j=1,event.tab DO BEGIN
theChild = Widget_Info(theChild, /Sibling)
ENDFOR
theBase = theChild
END
ENDCASE

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
Previous Topic: Re: emacs-snapshot and IDLWAVE
Next Topic: Re: Multi-line titles in IDL

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

Current Time: Fri Oct 10 15:02:40 PDT 2025

Total time taken to generate the page: 1.36127 seconds