mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:29:28 +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;
|
btn: NSButton;
|
||||||
cl: NSButtonCell;
|
cl: NSButtonCell;
|
||||||
begin
|
begin
|
||||||
btn := AllocButton(AWinControl, TLCLButtonCallBack, AParams, CocoaToggleBezel, CocoaToggleType);
|
btn := AllocButton(AWinControl, TLCLCheckBoxCallback, AParams, CocoaToggleBezel, CocoaToggleType);
|
||||||
cl := NSButtonCell(NSButton(btn).cell);
|
cl := NSButtonCell(NSButton(btn).cell);
|
||||||
cl.setShowsStateBy(cl.showsStateBy or NSContentsCellMask);
|
cl.setShowsStateBy(cl.showsStateBy or NSContentsCellMask);
|
||||||
Result := TLCLIntfHandle(btn);
|
Result := TLCLIntfHandle(btn);
|
||||||
|
Loading…
Reference in New Issue
Block a user