[Gambas-user] Auto select item in new combobox

T Lee Davidson t.lee.davidson at gmail.com
Mon Feb 6 17:27:50 CET 2023


On 2/6/23 04:21, Gianluigi wrote:
> Il 06/02/23 08:41, Safiur Rahman ha scritto:
>> Thanks Lee for your quick response. It solved the key down problem.
>>
>> I was thinking of ComboBox with additional native features like
>> 1) Select the first matching item as user writes into ComboBox (as above)
>> 2) Restrict to own items: The user is stopped from writing any string in ComboBox which does not match to any item.
>> 3) user can write in ComboBox after pop up list is displayed and popup list is sorted as user writes more alphabet.
>>
>> Any help would be appreciated.
> 
> 
> Hi,
> 
> Maybe you could take a look here:
> https://gitlab.com/shordi/ComboSeek
> 
> Regards
> Gianluigi


Yes. It's also on the Gambas Farm. Choose "All Software", check "Show filters", and enter "comboseek" as a filter.

It has quite a few lines of code. I haven't taken a close look at it so I don't know if it could be condensed any. But, it 
should give some good ideas.

I like how it highlights the closest matching item in the drop-down list (ie. the popup).


-- 
Lee



More information about the User mailing list