mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Cocoa: Fix #40680, the issue in TDbLookupCombobox with csDropDownList
This commit is contained in:
parent
48b54337bc
commit
309603fa93
@ -27,7 +27,7 @@ uses
|
||||
// Libs
|
||||
MacOSAll, CocoaAll, Classes, sysutils,
|
||||
// LCL
|
||||
Controls, StdCtrls, Graphics, LCLType, LMessages, LCLProc, LCLMessageGlue, Forms,
|
||||
Controls, StdCtrls, ComboEx, Graphics, LCLType, LMessages, LCLProc, LCLMessageGlue, Forms,
|
||||
// LazUtils
|
||||
LazUTF8, TextStrings,
|
||||
// Widgetset
|
||||
@ -1929,7 +1929,7 @@ begin
|
||||
begin
|
||||
rocmb := NSView(TCocoaReadOnlyComboBox.alloc).lclInitWithCreateParams(AParams);
|
||||
if not Assigned(rocmb) then Exit;
|
||||
rocmb.isComboBoxEx:= not (AWinControl is TComboBox);
|
||||
rocmb.isComboBoxEx:= AWinControl is TCustomComboBoxEx;
|
||||
rocmb.list:=TCocoaReadOnlyComboBoxList.Create(rocmb);
|
||||
rocmb.setTarget(rocmb);
|
||||
rocmb.setAction(objcselector('comboboxAction:'));
|
||||
|
Loading…
Reference in New Issue
Block a user