News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

r11993: searchable comboboxes don't work

Started by Nazalassa, May 31, 2026, 10:18:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nazalassa

Filtering is done through STRICMP which only compares strings in dictionary order. Thus searching things in comboboxes does not filter according to the query string as expected. I think the intended function is strstr(), which searches for substrings, or maybe strcasestr() (case-insensitive variant) which however is non-standard.

Additionally, when typing the selection goes down the list, which is weird.

Making paks since October 2023  |  pak48.bitlit | pak32.box | MLM for pak64 | Empire F7 cars | Pneumatic tubes | More pak64 vehicles and industries

Life is like a multi-tasking OS: you know you'll eventually get back to everything, but you don't know when.

prissi

Indeed, also the making visible was strange, hidden elements shoudl stay hidden. And there is tstrcasestr; but then it matches often not the cities I expected. strstr seems to do more what one would expect.
"Ahr" matches "kein Fahrplan vorhanden" which is not what a user expected. Als "Lan" is still with this entry. See r11994

Nazalassa

In r11994 no entries are hidden, the selection just jumps to the first matching item. (I don't know if this is intentional or not)
Making paks since October 2023  |  pak48.bitlit | pak32.box | MLM for pak64 | Empire F7 cars | Pneumatic tubes | More pak64 vehicles and industries

Life is like a multi-tasking OS: you know you'll eventually get back to everything, but you don't know when.

prissi


Nazalassa

Making paks since October 2023  |  pak48.bitlit | pak32.box | MLM for pak64 | Empire F7 cars | Pneumatic tubes | More pak64 vehicles and industries

Life is like a multi-tasking OS: you know you'll eventually get back to everything, but you don't know when.