Hi,

btn.setAnonymous(true); is *eating* your event ;)

Dank & Gruß
Mustafa Sak
Softwareentwickler
Mail Development
1&1 Mail & Media Development & Technology GmbH | Brauerstraße 48 | 76135 
Karlsruhe | Germany
Phone: +49 721 91374-6977
E-Mail: mustafa....@1und1.de<mailto:mustafa....@1und1.de> | Web: 
www.1und1.de<http://www.1und1.de/>

Von: hcarsten [mailto:carsten.harni...@harnisch-consulting.com]
Gesendet: Dienstag, 28. Juli 2015 23:26
An: qooxdoo-devel@lists.sourceforge.net
Betreff: Re: [qooxdoo-devel] Button in qx.ui.form.List

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] <[hidden 
email]</user/SendEmail.jtp?type=node&node=7587381&i=0>>:

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 <<a 
href="x-msg://7/user/SendEmail.jtp?type=node&amp;node=7587380&amp;i=0" 
target="_top" rel="nofollow" link="external" class="">[hidden email]> 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
Sent from the qooxdoo mailing list archive at Nabble.com<http://Nabble.com>.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;node=7587380&amp;i=1" 
target="_top" rel="nofollow" link="external" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;node=7587380&amp;i=2" 
target="_top" rel="nofollow" link="external" class="">[hidden email]
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
To unsubscribe from Button in qx.ui.form.List, click here.
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: Re: Button in 
qx.ui.form.List<http://qooxdoo.678.n2.nabble.com/Button-in-qx-ui-form-List-tp7587379p7587381.html>
Sent from the qooxdoo mailing list archive<http://qooxdoo.678.n2.nabble.com/> 
at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to