cocoa: handling togglebox events as checkbox events. bug #36812

git-svn-id: trunk@62776 -
This commit is contained in:
dmitry 2020-03-20 01:20:17 +00:00
parent c0484a52e0
commit 5a99d126b2

View File

@ -1931,7 +1931,7 @@ var
btn: NSButton;
cl: NSButtonCell;
begin
btn := AllocButton(AWinControl, TLCLButtonCallBack, AParams, CocoaToggleBezel, CocoaToggleType);
btn := AllocButton(AWinControl, TLCLCheckBoxCallback, AParams, CocoaToggleBezel, CocoaToggleType);
cl := NSButtonCell(NSButton(btn).cell);
cl.setShowsStateBy(cl.showsStateBy or NSContentsCellMask);
Result := TLCLIntfHandle(btn);