Lazarus

Programming => Widgetset => Cocoa => Topic started by: wittbo on February 25, 2020, 01:26:03 pm

Title: [CLOSED] TComboBox.Autodropdown not working with Cocoa
Post by: wittbo on February 25, 2020, 01:26:03 pm
Lazarus Windows ist OK.
Lazarus macOS Carbon is OK.

Lazarus macOS cocoa: the combobox list does not open on typing something into the field.
Does anyone have an idea for a workaround?

The goal is:  the user types something and the system searches at each keypress an external source (internet, database, ...), if it finds something containing the text in the field. If there is something, the corresponding phrases are filled into the itemlist of the combobox, so the user can select one. Everything works as desired, but the user cannot see, that there is something, since the dropdown list remains closed.
Title: Re: TComboBox.Autodropdown not working with Cocoa
Post by: wittbo on February 26, 2020, 02:14:43 pm
I made a workaround: replace the combobox by an edit plus a listbox and control the handling step by step by means of OnClick and OnKeyUp-Events.
Title: Re: [CLOSED] TComboBox.Autodropdown not working with Cocoa
Post by: trev on February 26, 2020, 11:12:47 pm
Did you lodge a bug on the Bugtracker? If not, it is unlikely to be fixed in the near to mid term.
Title: Re: [CLOSED] TComboBox.Autodropdown not working with Cocoa
Post by: skalogryz on February 27, 2020, 01:33:42 pm
it's complicated to drop a combo box via code
https://wiki.freepascal.org/Cocoa_Internals/Text_Controls#Programmatic_Drop
TinyPortal © 2005-2018