Recent

Author Topic: Autocomplete Combox not working under macOS/Cocoa (Text.SelStart/SelLenght fail)  (Read 178 times)

Hansaplast

  • Hero Member
  • *****
  • Posts: 629
  • Tweaking4All.com
    • Tweaking4All
It seems this bug may have fallen through the cracks when migrating from Mantis to Gitlab ...?


Anyhow, this is the problem: AutoComplete for a Combobox under Cocoa does not work at all.


* Tested this on an Intel Mac running macOS 12.5.1,
   Lazarus 2.3.0 rev main-2_3-439-ga669e08450,
   FPC 3.2.2 x86_64-darwin-cocoa)


The exact same project works just fine under Windows, Linux/GTK2 and Linux/QT5.


I've tried to do some debugging and so far I can only guess that it is related to SelStart and SelLenght are not working in TCombobox either (Cocoa), but are working properly under Linux and Windows.


I'm not an expert, but maybe this helps trying to resolve the Combobox issue?
Any assistance would be greatly appreciated  :-[


Attached test project.
Set focus on Combobox and click button.
Expected behavior: the combobox gets populated with the word "banana" and characters 3 and 4 (na) will be selected.
Works like that under Windows and Linux. Does nothing under macOS.
« Last Edit: August 30, 2022, 09:56:54 pm by Hansaplast »

 

TinyPortal © 2005-2018