mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:30:28 +02:00
cocoa: assigning value to updown control, when changed by ws. #34663
git-svn-id: trunk@60968 -
This commit is contained in:
parent
d60d80ba40
commit
7219b70a38
@ -302,6 +302,7 @@ procedure TUpdownCommonCallback.UpdownClick(isUpPressed: Boolean);
|
|||||||
const
|
const
|
||||||
UpDownBtn : array [Boolean] of TUDBtnType = (btPrev, btNext);
|
UpDownBtn : array [Boolean] of TUDBtnType = (btPrev, btNext);
|
||||||
begin
|
begin
|
||||||
|
TAccessUpDown(Target).Position := NSStepper(Owner).intValue;
|
||||||
if Assigned( TAccessUpDown(Target).OnClick ) then
|
if Assigned( TAccessUpDown(Target).OnClick ) then
|
||||||
TAccessUpDown(Target).OnClick( Target, UpDownBtn[isUpPressed]);
|
TAccessUpDown(Target).OnClick( Target, UpDownBtn[isUpPressed]);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user