|
|
@@ -121,44 +121,26 @@ begin
|
|
|
|
|
|
if num = FBtnClr.Caption then
|
|
|
begin
|
|
|
- {$IFDEF CPUX86_64}
|
|
|
- Application.ProcessMessages;
|
|
|
- KeyInput.Press(VK_BACK);
|
|
|
- Application.ProcessMessages;
|
|
|
+ {$IFDEF FPC}
|
|
|
+ Application.QueueAsyncCall(PressVirtKey, VK_BACK);
|
|
|
{$ELSE}
|
|
|
- {$IFDEF FPC}
|
|
|
- Application.QueueAsyncCall(PressVirtKey, VK_BACK);
|
|
|
- {$ELSE}
|
|
|
- SendKey(VK_BACK);
|
|
|
- {$ENDIF}
|
|
|
+ SendKey(VK_BACK);
|
|
|
{$ENDIF}
|
|
|
end
|
|
|
else if num = FBtnDot.Caption then
|
|
|
begin
|
|
|
- {$IFDEF CPUX86_64}
|
|
|
- Application.ProcessMessages;
|
|
|
- KeyInput.Press(vk_DotNumPad);
|
|
|
- Application.ProcessMessages;
|
|
|
+ {$IFDEF FPC}
|
|
|
+ Application.QueueAsyncCall(PressVirtKey, vk_DotNumPad);
|
|
|
{$ELSE}
|
|
|
- {$IFDEF FPC}
|
|
|
- Application.QueueAsyncCall(PressVirtKey, vk_DotNumPad);
|
|
|
- {$ELSE}
|
|
|
- SendKey(vk_DotNumPad);
|
|
|
- {$ENDIF}
|
|
|
+ SendKey(vk_DotNumPad);
|
|
|
{$ENDIF}
|
|
|
end
|
|
|
else
|
|
|
begin
|
|
|
- {$IFDEF CPUX86_64}
|
|
|
- Application.ProcessMessages;
|
|
|
- KeyInput.Press(Ord(TBCButton(Sender).Caption[1]));
|
|
|
- Application.ProcessMessages;
|
|
|
+ {$IFDEF FPC}
|
|
|
+ Application.QueueAsyncCall(PressVirtKey, Ord(TBCButton(Sender).Caption[1]));
|
|
|
{$ELSE}
|
|
|
- {$IFDEF FPC}
|
|
|
- Application.QueueAsyncCall(PressVirtKey, Ord(TBCButton(Sender).Caption[1]));
|
|
|
- {$ELSE}
|
|
|
- SendKey(Ord(TBCButton(Sender).Caption[1]));
|
|
|
- {$ENDIF}
|
|
|
+ SendKey(Ord(TBCButton(Sender).Caption[1]));
|
|
|
{$ENDIF}
|
|
|
end;
|
|
|
|