Button in qx.ui.form.List

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Button in qx.ui.form.List

hcarsten
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.

Reply | Threaded
Open this post in threaded view
|

Re: Button in qx.ui.form.List

Phyo Arkar
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]> 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.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


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

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Button in qx.ui.form.List

hcarsten
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]>:

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.

------------------------------------------------------------------------------
_______________________________________________
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

Reply | Threaded
Open this post in threaded view
|

Re: Button in qx.ui.form.List

Mustafa Sak-5

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: [hidden email] | Web: www.1und1.de

 

Von: hcarsten [mailto:[hidden email]]
Gesendet: Dienstag, 28. Juli 2015 23:26
An: [hidden email]
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]>:

 

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.

------------------------------------------------------------------------------
_______________________________________________
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

 


View this message in context: Re: Button in qx.ui.form.List
Sent from the qooxdoo mailing list archive at Nabble.com.


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

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Button in qx.ui.form.List

hcarsten
genius :) thx, this was the point 

best
Carsten Harnisch
-- Harnisch-Consulting

Am 29.07.2015 um 10:54 schrieb Mustafa Sak-5 [via qooxdoo] <[hidden email]>:

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: <a href="x-msg://13/user/SendEmail.jtp?type=node&amp;node=7587382&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email] | Web: www.1und1.de

 

Von: hcarsten [mailto:<a href="x-msg://13/user/SendEmail.jtp?type=node&amp;node=7587382&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]]
Gesendet: Dienstag, 28. Juli 2015 23:26
An: <a href="x-msg://13/user/SendEmail.jtp?type=node&amp;node=7587382&amp;i=2" target="_top" rel="nofollow" link="external" class="">[hidden email]
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] <<a href="x-msg://13/user/SendEmail.jtp?type=node&amp;node=7587381&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]>:

 

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="<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;amp;node=7587380&amp;amp;i=0" class="">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.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
<a href="<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;amp;node=7587380&amp;amp;i=1" class="">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="<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;amp;node=7587380&amp;amp;i=2" class="">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

 


View this message in context: Re: Button in qx.ui.form.List
Sent from the qooxdoo mailing list archive at Nabble.com.


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

_______________________________________________
qooxdoo-devel mailing list
<a href="x-msg://13/user/SendEmail.jtp?type=node&amp;node=7587382&amp;i=3" 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-tp7587379p7587382.html
To unsubscribe from Button in qx.ui.form.List, click here.
NAML