|
Re: closing tabs of widget_tab() [message #67598 is a reply to message #67590] |
Thu, 06 August 2009 05:16  |
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.")
|
|
|