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

Home » Public Forums » archive » Re: closing tabs of widget_tab()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: closing tabs of widget_tab() [message #67590] Thu, 06 August 2009 17:30
b.a is currently offline  b.a
Messages: 26
Registered: July 2009
Junior Member
You are right David, they have different ids.
Thanks.
Re: closing tabs of widget_tab() [message #67598 is a reply to message #67590] Thu, 06 August 2009 05:16 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
b.a writes:

> I have a widget_tab in my program and by user request (clicking on a
> button), new tab can be added to the widget. I also need to destroy
> the tabs in some way (each tab which is added has a close button on
> it. I want to destroy the tab when its close button is clicked.). As
> all the tabs on the widget have the same ID, I can't just use its id
> to destroy it. Is there any other way?

If all the tab widgets in your program "have the same ID",
then you have done something wrong in your program. All
widgets, of any sort, when they are created, have a unique
widget ID. You need to know what this unique ID is in order
to interact with the widget, including kill it.

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL PostScript Landscape Mode (Not!) Fixed
Next Topic: Re: Skipping Commented Line in File

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

Current Time: Wed Oct 08 17:30:29 PDT 2025

Total time taken to generate the page: 0.00550 seconds