« Return to Thread: Automatically resize a qx.ui.form.List according to the number of contained items

Re: Automatically resize a qx.ui.form.List according to the number of contained items

by Gene Amtower :: Rate this Message:

Reply to Author | View in Thread

Ralf,

To your question about making a rich combo-box, I've created a filthy-rich combo box using a qx.ui.popup.Popup that contains a table instead of a list, allowing the selection of a table entry in the popup object.  It wasn't really that difficult to build the popup object with the table for this purpose, although I use the textfield to drive a backend search that populates the table entries.  You may be interested in more typical combo-box functionality, which is already provided by the qx.ui.form.ComboBox class in the framework.

So, in answer to your question, it's easy to build rich widget functionality by combining existing classes.  I just had to create a listener for the qx.ui.form.TextField widget to display the popup and an appropriate selection listener for my popup contents (list, table, etc.) to drive the behavior I needed from a user selection in the popup.  If you're interested in standard ComboBox functionality, just use the qx.ui.form.ComboBox class, otherwise you can build interesting popups in Qooxdoo quite easily like I did.

I'm really just a beginner myself, and this proved to be easy once I understood the Qooxdoo widget usage and listener functionality.  This is why the ComboBoxEx (textfield with a popup table) in 0.7.x was never ported to 0.8 - because it's so easy to build within your app code, you don't really need a widget in the framework.

   Gene

On Mon, 2009-07-06 at 09:43 +0200, Vincent Bernardi wrote:
On 5 juil. 09, at 15:41, Ralf Nieuwenhuijsen wrote:
> Out of curiosity: are you using the qx.ui.popup.Popup containing a  
> list as an sort of rich combo-box?
> Does this work out nice in practice?

If by a combo-box you mean both a list and an editable text field, not  
really, we just display the single-selection list containing a choice  
of options for the user. The popup is set to fade out after three  
seconds if the user doesn't enter the popup with the mouse. This works  
ok enough for now. I have improvements in mind but I don't know when  
I'll get around to it.

V.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

 « Return to Thread: Automatically resize a qx.ui.form.List according to the number of contained items