Hi, Fraid,

welcome to qooxdoo.  ;-)

Farid Elyahyaoui wrote:
newbie question:
I want to get the selected color from the qxcolorselector widget when
somebody presses the OK button.
for instance to set the color of a canvas. I made a button which pops
up a window with a qxcolorselector but now I don't know how to get
the selected color. How do I do this? I tried browsing throught the
source code but it seems the OK button is private. How to apply an
action to it.

The current QxColorSelector is based on the output of an internal qooxdoo workshop and has not been used productively, yet. Apparently, the API is missing a way to attach to the buttons?

Never ever use private properties in your application code! Well, until it is fixed you might want to do something like (I have never told you to! ;-) ):

yourColorSelectorInstance._btnok.addEventListener("execute", function(e) { alert("ok"); });

I'll update TODO. Any takers out there?

Andreas


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to