Recent

Author Topic: Tcombobox under Linux. Can not autoselect with multiple characters.  (Read 1015 times)

han

  • Full Member
  • ***
  • Posts: 117
I'm using Tcombox with many entries. Typing multiple characters to autoselect works fine underWindows. But under Linux you can type only one character. This doesn't work for me since many of the items start with the same 000-.

Is there a way to get the same behavior under Linux? So to type more then one character for autoselect? See screenshot under Windows and attached code example.

Han





JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4525
  • I like bugs.
Re: Tcombobox under Linux. Can not autoselect with multiple characters.
« Reply #1 on: August 18, 2024, 08:05:49 pm »
Linux is a kernel. TCombobox is implemented by a widgetset. I guess you use GTK2. Please test with QT5, too. It works better in many details.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

han

  • Full Member
  • ***
  • Posts: 117
Re: Tcombobox under Linux. Can not autoselect with multiple characters.
« Reply #2 on: August 18, 2024, 08:33:29 pm »
I have tried widget set QT5 and GTK2 & 3 and they all behave the same. You can type only one character. If you type it one more time it stay at one character and the list scrolls one position down. But you can't type 000- as in Windows.

paweld

  • Hero Member
  • *****
  • Posts: 1219
Re: Tcombobox under Linux. Can not autoselect with multiple characters.
« Reply #3 on: August 18, 2024, 08:40:53 pm »
In GTK2, it will work only if you disable the AutoDropDown property.
Best regards / Pozdrawiam
paweld

han

  • Full Member
  • ***
  • Posts: 117
Re: Tcombobox under Linux. Can not autoselect with multiple characters.
« Reply #4 on: August 18, 2024, 09:13:32 pm »
In GTK2, it will work only if you disable the AutoDropDown property.

Thanks. yes then it works with autocomplete. Okay that is a workable solution.


I just tested in macOS Cocoa and with the latest trunk the autocomplete works as in Windows with the autoDropDown property checked.

It this Tcombobox behavior depended on the Linux widgets or could it be modified in the FPC code? If it is FPC I could raise an issue.

 

TinyPortal © 2005-2018