Christian,
Thank you for your help. I was a bit sloppy asking my question, but
after a little playing around, I found the answer -
What I was interested in was having a button execute when a field was
clicked (specifically a DateChooserButton). It turns out all I had to do
was something like:
this.field.addEventListener("click", function(e) {
this.button.execute()
});
David
Christian Boulanger wrote:
> Hi,
>
> sending and subscribing to messages works similar to dispatching and
> listening for events. So if you have a button mybutton, you write
>
> qx.event.message.Bus.subscribe("activation-message",function(message){
> this.setEnabled(message.getData());
> }, mybutton);
>
> and within the field that should activate the button, you write, for example
>
> myfield.addEventListener("focus",function(){
> qx.event.message.Bus.dispatch(new
> qx.event.message.Message("activation-message", true))
> });
>
> I will write a tutorial on messagens soon.
>
> Christian
>
>
>
> johnl wrote:
>> How do I send a message to an object? I have a DateChooserButton I want
>> to activate when clicking on a field (for the convenience of a user).
>>
>> Thanks.
>>
>> David
>>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel