Ver Fonte

fix callback signature

Juliette ELSASS há 8 meses atrás
pai
commit
ffc542f4b0
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      bcnumerickeyboard.pas

+ 2 - 2
bcnumerickeyboard.pas

@@ -82,7 +82,7 @@ type
   protected
   protected
     procedure OnButtonClick(Sender: TObject; {%H-}Button: TMouseButton;
     procedure OnButtonClick(Sender: TObject; {%H-}Button: TMouseButton;
       {%H-}Shift: TShiftState; {%H-}X, {%H-}Y: integer); override;
       {%H-}Shift: TShiftState; {%H-}X, {%H-}Y: integer); override;
-    procedure PressVirtKey(p: longint);
+    procedure PressVirtKey(p: PtrInt);
   public
   public
     constructor Create(AOwner: TComponent); override;
     constructor Create(AOwner: TComponent); override;
   published
   published
@@ -166,7 +166,7 @@ begin
     FOnUserChange(Self);
     FOnUserChange(Self);
 end;
 end;
 
 
-procedure TBCRealNumericKeyboard.PressVirtKey(p: longint);
+procedure TBCRealNumericKeyboard.PressVirtKey(p: PtrInt);
 begin
 begin
   KeyInput.Down(p);
   KeyInput.Down(p);
   KeyInput.Up(p);
   KeyInput.Up(p);