[Gambas-user] Building a custom MyComboBox

Jorge Carrión shordi at ...626...
Mon Mar 3 21:44:42 CET 2014


I give my 2 cents...
Send a little proyect with sample.
its a function that in design time only have to put in tag of listbox or
combobox this tablename|fieldkey|field_to_show
after that you got in the tag of the combo a variant[] with a string with
the original tag and a integer[] with the keys corresponding at combos.list

If you want to display more than a field just put it in the tag string
tablename|fieldkey|field_to_show1|fiel_to_show2, etc.
Hope it helps

Regards

2014-03-03 20:49 GMT+01:00 Matti <matti.eber at ...3240...>:

> 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
>
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and
> the
> freedom to use Git, Perforce or both. Make the move to Perforce.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DemoListbox-combobox-0.0.1.tar.gz
Type: application/x-gzip
Size: 6892 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140303/25dca7fc/attachment.bin>


More information about the User mailing list