[Gambas-user] Building a custom MyComboBox

Matti matti.eber at ...3240...
Mon Mar 3 20:49:48 CET 2014


I'm playing around with a ComboBox that should have some special features.
Looked into the sources and found out how to create and inherit it.
Subs, Functions and Events  work.

But one thing is a complete riddle to me:
In the wiki, it says: "For example, you can create a custom MyListBox class that inherits ListBox <http://gambasdoc.org/help/comp/gb.qt/listbox?view> but allows to associate a tag with each list item."
That's exactly what I'd need for MyComboBox: each list item with a tag (ID from a database).

Could someone give me a hint how to do that?
Thanks, Matti




More information about the User mailing list