On Thu, Nov 13, 2008 at 7:23 PM, Jim Hunter <[EMAIL PROTECTED]> wrote:

> In 7.x there used to be a property to disable editing (setEditable(false))
> of a ComboBox, but in .8 I don't see any way to stop the user from editing
> the text short of setting enabled(false) which makes the dropdown not work.
> So how can this be accomplished with the new system?


It looks like you could do something like this:

var combo = new qx.ui.form.ComboBox();
combo.addListener("changeValue", function(e) { this.oldValue =
this.getValue(); }, combo);
combo.addListener("input", function(e) { this.setValue(this.oldValue); },
combo);

A bit hackish, but should work.  I'd think that you should be able to
disable editing in a combo box.  You may want to file a bug report for it.

Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to