LazControls: Fix "no checkboxes/no items" issue #39427.

This commit is contained in:
wp_xyz 2021-10-15 22:56:05 +02:00
parent 277ce7472c
commit e7b27f404f

View File

@ -304,7 +304,7 @@ begin { do not call inherited ! }
aEnabled:=IsEnabled;
if not (csDesigning in ComponentState) then
aEnabled:= (aEnabled and ItemState.Enabled);
{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64)}
{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64) or DEFINED(Darwin)}
aFocusedEditableMainItemNoDD := (Focused and (ARect.Left>0) and not aDropped);
{$ELSE}
aFocusedEditableMainItemNoDD := False;
@ -382,13 +382,13 @@ begin { do not call inherited ! }
end;
procedure TCustomCheckCombo.DropDown;
{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64)}
{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64) or DEFINED(Darwin)}
{$ELSE}
var aCursorPos: TPoint;
aRect: TRect;
{$ENDIF}
begin
{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64)}
{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64) or DEFINED(Darwin)}
FRejectDropDown:=False;
{$ELSE}
aCursorPos:=ScreenToControl(Mouse.CursorPos);