[Gambas-user] bespoke ComboBox

Christof Thalhofer chrisml at deganius.de
Sat Feb 20 09:32:40 CET 2021


Am 19.02.21 um 17:32 schrieb KKing:

> In MS Access you could set a DropDown/Combobox control so the collapsed 
> view showed a single column value e.g. a Customer Code but when expanded 
> the list portion could be much wider than the collapsed ComboBox width. 
> In the List portion additional columns of data could be presented e.g. 
> Customer Name, Address, Postcode or ilk. Does something exist like that 
> in Gambas already or could be readily easily achieved by "inheritance" 
> off existing Gambas ListBox + maybe ComboBox or more likely bespoke 
> TextBox + Button?

One of the first things I did when I switched over to Gambas was writing
a MS-Access-like combobox (it took me about a month). My knowledge of
Gambas was quite bad and today i would write it in another way but ...

.. it works and I use it in my software every day. It has a few bugs
that I'm not only too lazy to fix, but also too scared to touch because
any change in this labyrinthine piece of code could have unknown
consequences.

Mostly i use it to blend in data of related tables with foreign keys of
relational databases for example 'product' into 'order' or 'salutation'
into 'address'.

You can find it here:

https://gitlab.com/christhal/gb.deg.form

Have fun with it.

And please don't try to understand the description ... this will only
lead to more confusion ... instead use the code examples.

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210220/3786ae66/attachment.sig>


More information about the User mailing list