[Gambas-user] ComboBox as a SearchBox?
Fabien Bodard
gambas.fr at ...626...
Fri May 19 11:27:25 CEST 2017
you can built something with a textbox a drawing area for drawing the
but with the current style and a listbox in a popuped window
you can also use the completion class.
2017-05-19 9:35 GMT+02:00 Matti <matti.eber at ...3240...>:
> Thanks, Rolf.
> Good idea. Now, I have set the search string on first position of the list.
> But something ist still wrong - I'll investigate.
> Matti
>
> Am 19.05.2017 um 08:47 schrieb Rolf-Werner Eilert:
>> Am 18.05.2017 20:18, schrieb Matti:
>>> My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters.
>>> This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is overridden with the first result of the search. So there is no chance of searching farther.
>>>
>>> Ok, I have built the same now with a TextBox to search and a ListBox to show the results, but I still wonder why. It would be far more elegant...
>>
>> Just a vague idea - have you tried leaving the first entry out or blank
>> when you fill the list?
>>
>> Regards
>> Rolf
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Fabien Bodard
More information about the User
mailing list