cocoa: calling the proper event when processing updown change

git-svn-id: trunk@60971 -
This commit is contained in:
dmitry 2019-04-14 14:39:40 +00:00
parent 1fa1d582f2
commit b03fd14109

View File

@ -293,7 +293,7 @@ procedure TUpdownCommonCallback.Change(NewValue: Double; isUpPressed: Boolean;
const
UpDownDir : array [Boolean] of TUpDownDirection = (updUp, updDown);
begin
if Assigned( TAccessUpDown(Target).OnChanging ) then
if Assigned( TAccessUpDown(Target).OnChangingEx ) then
TAccessUpDown(Target).OnChangingEx(Target, Allowed,
Round(NewValue), UpDownDir[isUpPressed]);
end;