Hi Stefan,
Thanks for your suggestion.
Replacing the command by a plain listener would mean losing the
advantages of using a command object, such as disabling it to disable
all attached widgets. The menu item would also no longer show the
keyboard shortcut set by the command. Both are advantages I would like
to keep. :)
Cheers,
Marc
On 07/11/2010 04:42 PM, Stefan Volbers wrote:
> Hi Marc,
>
> I tried something slightly differently, seems to work out:
>
> I removed the button.setCommand(this._command) line in _getMenu(), but
> instead added a listener
> button.addListener("execute", function(e){
> this.toggleShowLabel();
> }, this);
> in the same place.
> With this tiny modification, the removeListener() line seems obsolete.
>
> Maybe you give it a try,
>
> HTH,
> greetings
> Stefan
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel