Hi all.
I added CTabFolder to my program to make multi-tabbed browsing with
Browser widget.
When the Browser need new window, it calls my OpenWindowListener. In
that case, I make new CTabItem, make Browser to it, and supply the
Browser object in the Listener.
When the Browser need to be closed, it calls my CloseWindowListener. I
catched it, but I can't find how to close the related CTabItem,
automatically.
There is no method like CTabFolder.remove(CTabItem ). :-(
Thanks in advance.
> Hi all.
> I added CTabFolder to my program to make multi-tabbed browsing with
> Browser widget.
> When the Browser need new window, it calls my OpenWindowListener. In
> that case, I make new CTabItem, make Browser to it, and supply the
> Browser object in the Listener.
> When the Browser need to be closed, it calls my CloseWindowListener. I
> catched it, but I can't find how to close the related CTabItem,
> automatically.
> There is no method like CTabFolder.remove(CTabItem ). :-(
I'm not sure, but try CTabItem.dispose()
Stephan.
Wongoo Lee - 29 Aug 2004 01:57 GMT
Hi Stephan.
I tried the dispose method to event.browser in the
CLoseWindowListener. But I think the event.browser should be used only
in OpenWindowListener to provide new Browser.
The problem was solved by using event.widget. :-)
Thanks again.
> > Hi all.
>
[quoted text clipped - 14 lines]
>
> Stephan.