Hi Petr,

assume result is a  qx.ui.tabview.Page
 and   remove_tab a function to call remove with result on the 
qx.ui.tabview.TabView

  var button = result.getButton();
  var cross = new 
qx.ui.basic.Image("decoration/window/close-inactive.png").set({marginRight : -3 
});
  cross.addListener('click', remove_tab);
  button._add(cross);

so the trick is all with the _add method :-)

cheers
tobi

Today Petr Kobalí?ek wrote:

> I want to reopen discussion on closable tabs.
>
> Currently nearly each of all my tab pages needs some way how to close
> it (I'm creating buttons somewhere to do that) and I think that others
> have same problems. So is possible to create tab page with close
> button ?
>
> Some hints will be nice:)
>
> Cheers
> - Petr
>
> 2008/9/2 Petr Kobalí?ek <[email protected]>:
> > Ok:-)
> >
> > I'm looking forward;-)
> > Petr
> >
> > 2008/9/2 Sebastian Werner <[email protected]>:
> >> Hi Petr,
> >>
> >> If I remember correctly there is a bug open. This is currently open,
> >> maybe you want to help to get this done. Otherwise it may also be
> >> moved to 0.8.2 later. The next release will mainly be a bugfix release
> >> and not a feature release. And even closeable tabs are a new feature
> >> in 0.8.
> >>
> >> Sebastian
> >>
> >>
> >> Am 01.09.2008 um 23:33 schrieb Petr Kobalí?ek:
> >>
> >>> Hi qxdevs:)
> >>>
> >>> I'm wondering how to create closable tabs in 0.8. If it's not possible
> >>> it's planned ?
> >>>
> >>> Cheers
> >>> - Petr
> >>>
> >>> -------------------------------------------------------------------------
> >>> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >>> challenge
> >>> Build the coolest Linux based applications with Moblin SDK & win
> >>> great prizes
> >>> Grand prize is a trip for two to an Open Source event anywhere in
> >>> the world
> >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >>> _______________________________________________
> >>> qooxdoo-devel mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >>
> >>
> >> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> >> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win great 
> >> prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> qooxdoo-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >>
> >
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to