mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:48:03 +02:00
UpDown: revert revision 54974 #bf69b8e9d5, because it seems to be wrong and introduces another Delphi incompatibility.
git-svn-id: trunk@55014 -
This commit is contained in:
parent
af0b2c3d79
commit
cd2672eb03
@ -1888,8 +1888,6 @@ type
|
||||
procedure OnAssociateChangeEnabled(Sender: TObject);
|
||||
procedure OnAssociateChangeVisible(Sender: TObject);
|
||||
procedure DoSetBounds(ALeft, ATop, AWidth, AHeight: integer); override;
|
||||
function DoMouseWheelDown(Shift: TShiftState; MousePos: TPoint): Boolean; override;
|
||||
function DoMouseWheelUp(Shift: TShiftState; MousePos: TPoint): Boolean; override;
|
||||
procedure SetEnabled(Value: Boolean); override;
|
||||
class function GetControlClassDefaultSize: TSize; override;
|
||||
procedure CalculatePreferredSize(var PreferredWidth,
|
||||
|
@ -413,22 +413,6 @@ begin
|
||||
UpdateOrientation;
|
||||
end;
|
||||
|
||||
function TCustomUpDown.DoMouseWheelDown(Shift: TShiftState; MousePos: TPoint
|
||||
): Boolean;
|
||||
begin
|
||||
Result := inherited DoMouseWheelDown(Shift, MousePos);
|
||||
if not Result then
|
||||
TCustomSpeedButton(FMinBtn).Click;
|
||||
end;
|
||||
|
||||
function TCustomUpDown.DoMouseWheelUp(Shift: TShiftState; MousePos: TPoint
|
||||
): Boolean;
|
||||
begin
|
||||
Result := inherited DoMouseWheelUp(Shift, MousePos);
|
||||
if not Result then
|
||||
TCustomSpeedButton(FMaxBtn).Click;
|
||||
end;
|
||||
|
||||
procedure TCustomUpDown.SetEnabled(Value: Boolean);
|
||||
begin
|
||||
FMinBtn.Enabled := Value;
|
||||
|
Loading…
Reference in New Issue
Block a user