mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 06:19:32 +02:00
LCL-WinCE: Adds code to get some barcode scanners working with TEdit. Others still dont work.
git-svn-id: trunk@40630 -
This commit is contained in:
parent
78ab6ea5d0
commit
146aeb1092
@ -1478,6 +1478,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
Msg := CN_KEYDOWN;
|
Msg := CN_KEYDOWN;
|
||||||
KeyData := LParam;
|
KeyData := LParam;
|
||||||
|
// Work around to get readings of some barcode scanners
|
||||||
|
if (WParam = 0) and (WinCEWidgetset.BarcodeScannerWorkaround) then
|
||||||
|
WParam := VK_0;
|
||||||
CharCode := Word(WParam);
|
CharCode := Word(WParam);
|
||||||
Result := 0;
|
Result := 0;
|
||||||
//DebugLn(Format('WM_KEYDOWN KeyData= %d CharCode= %d ',[KeyData,CharCode]));
|
//DebugLn(Format('WM_KEYDOWN KeyData= %d CharCode= %d ',[KeyData,CharCode]));
|
||||||
|
@ -215,6 +215,7 @@ type
|
|||||||
{ Variables to be set by the user }
|
{ Variables to be set by the user }
|
||||||
|
|
||||||
WinCETitlePolicy: TWinCETitlePolicy;
|
WinCETitlePolicy: TWinCETitlePolicy;
|
||||||
|
BarcodeScannerWorkaround: Boolean;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$I wincelistslh.inc}
|
{$I wincelistslh.inc}
|
||||||
|
@ -52,6 +52,8 @@ begin
|
|||||||
GetObject(Font, SizeOf(FMetrics.lfStatusFont), @FMetrics.lfStatusFont);
|
GetObject(Font, SizeOf(FMetrics.lfStatusFont), @FMetrics.lfStatusFont);
|
||||||
GetObject(Font, SizeOf(FMetrics.lfMenuFont), @FMetrics.lfMenuFont);
|
GetObject(Font, SizeOf(FMetrics.lfMenuFont), @FMetrics.lfMenuFont);
|
||||||
|
|
||||||
|
BarcodeScannerWorkaround := True;
|
||||||
|
|
||||||
WinCEWidgetSet := Self;
|
WinCEWidgetSet := Self;
|
||||||
end;
|
end;
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user