Recent

Author Topic: [CLOSED] TComboBox.Autodropdown not working with Cocoa  (Read 674 times)

wittbo

  • Full Member
  • ***
  • Posts: 109
[CLOSED] TComboBox.Autodropdown not working with Cocoa
« 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.
« Last Edit: February 26, 2020, 02:15:08 pm by wittbo »
-wittbo-
MBAir with MacOS 10.14.6 / Lazarus 2.0.6
iMac with MacOS 10.13.6 / Lazarus 2.0.2

wittbo

  • Full Member
  • ***
  • Posts: 109
Re: TComboBox.Autodropdown not working with Cocoa
« Reply #1 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.
-wittbo-
MBAir with MacOS 10.14.6 / Lazarus 2.0.6
iMac with MacOS 10.13.6 / Lazarus 2.0.2

trev

  • Hero Member
  • *****
  • Posts: 714
  • Former Delphi 1-7 and 10.2 User
Re: [CLOSED] TComboBox.Autodropdown not working with Cocoa
« Reply #2 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.
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2457
    • havefunsoft.com
Re: [CLOSED] TComboBox.Autodropdown not working with Cocoa
« Reply #3 on: February 27, 2020, 01:33:42 pm »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

 

TinyPortal © 2005-2018