Hi Fritz, I can see your dilemma. The easy way of most qooxdoo widgets just to extend and add some more child controls is difficult in qx.ui.form.List(). Because it extends from qx.ui.core.scroll.AbstractScrollArea. The scroller uses normally grid layout. Adding on top of it means to override the whole _createChildControlImpl. I guess my example http://tinyurl.com/kfc2a7u can be a nice wrapper. This solution allows you to access directly to the api of form-list. I just created a list and injected it as a childcontrol into a wrapper which also holds the toolbar.
Hope I could help. Gruß Mustafa Sak Applications & Integration 1&1 Internet AG Ernst-Frey-Straße 10 DE-76135 Karlsruhe -----Ursprüngliche Nachricht----- Von: Fritz Zaucker [mailto:[email protected]] Gesendet: Montag, 24. Juni 2013 08:41 An: qooxdoo Development Betreff: [qooxdoo-devel] How to extending qx.ui.form.List() Hi, I need to extend qx.ui.form.List() to have a form widget with two buttons (add and clear) for manipulation the selection of elements in the list: ------------- | All | Clr | ------------- | Item 1 | | Item 2 | | Item 3 | | Item 4 | | ... | ------------- The All and Clr buttons should be outside the scroll area of the List widget (e.g. NOT be scrolled). My question is: how can I create such a widget in a Qooxdoo-OO way (that is without copying too much code)? Is it somehow possible to extend qx.ui.formm.List() and "insert" the two buttons into the widgets layout? Or do I have to create a wrapper widget (using a container widget)? In this case, is there an efficient way to wrap all the List widget methods as well? Thanks, Fritz -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
