this._list = new qx.ui.form.List();
this._listController = new qx.data.controller.List(null, this._list);
  
this._listController.setDelegate({
        createItem : function() {
          return new xyz.Item();
    },
    
qx.Class.define("xyz.Item", {
        extend : qx.ui.container.Composite, 
        
        construct : function() {
            this.base(arguments);
        
            var layout = new qx.ui.layout.Grid(4, 2);
            layout.setColumnFlex(1, 1);
            this._setLayout(layout);
        
            this._createChildControl("actor");
        },
        
        ...
        
         _createChildControlImpl : function(id) {
            var control;
            switch (id) {
                    case "actor":
                        var btn = new qx.ui.form.Button("On/Off");
                        btn.setAnonymous(true);
                        btn.setRich(true);
                        this._add(btn, {
                            row : 0,
                            column : 2
                        });
                        btn.setZIndex(999);
                        btn.setUserData("sen_act_id", this.getLabel());
                        btn.addListener("execute", function() {
                                
this.triggerActor(btn.getUserData("sen_act_id"));
                        }, this);
                        control = btn;
                        break;
            }
            return control || this.base(arguments, id);
        },

best

Carsten

> Am 28.07.2015 um 23:18 schrieb Phyo Arkar [via qooxdoo] 
> <ml-node+s678n7587380...@n2.nabble.com>:
> 
> can you show us the code? I can help with that if i can see where is the 
> problem.
> 
> On Wed, Jul 29, 2015 at 2:49 AM, hcarsten <[hidden email] 
> <x-msg://7/user/SendEmail.jtp?type=node&node=7587380&i=0>> wrote:
> I am trying to create a custom list-item which renders a qx.ui.form.Button
> within the _createChildControlImpl.
> 
> This is all running fine besides the button(s) could not been clicked. So
> something (the item or the list) is eating the events. I tried to zindex
> buttons but this seems not to work. I assume that the "selection management"
> is inferring with the button event flow.
> 
> Any help appreciated.
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Button-in-qx-ui-form-List-tp7587379.html 
> <http://qooxdoo.678.n2.nabble.com/Button-in-qx-ui-form-List-tp7587379.html>
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email] <x-msg://7/user/SendEmail.jtp?type=node&node=7587380&i=1>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel 
> <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
> 
> 
> ------------------------------------------------------------------------------
>  
> 
> _______________________________________________ 
> qooxdoo-devel mailing list 
> [hidden email] <x-msg://7/user/SendEmail.jtp?type=node&node=7587380&i=2> 
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel 
> <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://qooxdoo.678.n2.nabble.com/Button-in-qx-ui-form-List-tp7587379p7587380.html
>  
> <http://qooxdoo.678.n2.nabble.com/Button-in-qx-ui-form-List-tp7587379p7587380.html>
> To unsubscribe from Button in qx.ui.form.List, click here 
> <http://qooxdoo.678.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7587379&code=Q2Fyc3Rlbi5IYXJuaXNjaEBoYXJuaXNjaC1jb25zdWx0aW5nLmNvbXw3NTg3Mzc5fC0xNTUxNTMzNjQy>.
> NAML 
> <http://qooxdoo.678.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21workgroup%3Aworkgroup.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Button-in-qx-ui-form-List-tp7587379p7587381.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to