Re: SWT: How to remove a CTabItem from CTabFolder.
From: Wongoo Lee (iwongu_at_hotmail.com)
Date: 08/29/04
- Previous message: John Bokma: "Help: displaying many text lines with graphics fast in applet"
- In reply to: stephan_at_vern.chem.tu-berlin.de: "Re: SWT: How to remove a CTabItem from CTabFolder."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Aug 2004 17:57:20 -0700
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.
stephan@vern.chem.tu-berlin.de wrote in message news:<cgpusr$1a0$1@mamenchi.zrz.TU-Berlin.DE>...
> Wongoo Lee <iwongu@hotmail.com> wrote:
> > 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.
- Previous message: John Bokma: "Help: displaying many text lines with graphics fast in applet"
- In reply to: stephan_at_vern.chem.tu-berlin.de: "Re: SWT: How to remove a CTabItem from CTabFolder."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]