mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 21:39:12 +02:00
cocoa: handling togglebox events as checkbox events. bug #36812
git-svn-id: trunk@62776 -
This commit is contained in:
parent
c0484a52e0
commit
5a99d126b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user