Hi Ken,
deselectMenuButton.setEnabled(false);
should be what you're looking for.
Regards,
Daniel
Ken MacDonald schrieb:
> I have a button:
>
> deselectMenuButton = new qx.ui.form.Button("Remove Selection from Menu");
> ....
> It works great, but I'd like it greyed out if the menu has no items, or
> no items are selected. I've
> tried several things, such as:
> deselectMenuButton.focusable = false;
> deselectMenuButton.deactivate();
> deselectMenuButton.hide(); <==== works!
>
> but would rather not have button appearing/disappearing all the time. Is
> there a way to do this using qooxdoo? Right now, I'm just capturing the
> button click and displaying "No Items Select" in an alert(), but would
> rahter have something a little cooler.....
> Ken
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel