You've already forked lazarus-ccr
fix bug in RxLockupComboBox
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2491 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -55,6 +55,7 @@ type
|
|||||||
procedure FindPriorChar;
|
procedure FindPriorChar;
|
||||||
procedure SetLookupDisplayIndex(const AValue: integer);
|
procedure SetLookupDisplayIndex(const AValue: integer);
|
||||||
protected
|
protected
|
||||||
|
procedure SetDBHandlers(Value: boolean);override;
|
||||||
procedure UTF8KeyPress(var UTF8Key: TUTF8Char); override;
|
procedure UTF8KeyPress(var UTF8Key: TUTF8Char); override;
|
||||||
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
|
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
|
||||||
property LookupDisplayIndex:integer read FLookupDisplayIndex write SetLookupDisplayIndex;
|
property LookupDisplayIndex:integer read FLookupDisplayIndex write SetLookupDisplayIndex;
|
||||||
@ -891,12 +892,14 @@ begin
|
|||||||
FLookupDisplayField:=Columns[FLookupDisplayIndex].FieldName;
|
FLookupDisplayField:=Columns[FLookupDisplayIndex].FieldName;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TPopUpGrid.SetDBHandlers(Value: boolean);
|
||||||
|
begin
|
||||||
|
//
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TPopUpGrid.UTF8KeyPress(var UTF8Key: TUTF8Char);
|
procedure TPopUpGrid.UTF8KeyPress(var UTF8Key: TUTF8Char);
|
||||||
begin
|
begin
|
||||||
inherited UTF8KeyPress(UTF8Key);
|
inherited UTF8KeyPress(UTF8Key);
|
||||||
if UTF8Key>=#32 then
|
|
||||||
FindNextChar(UTF8Key)
|
|
||||||
else
|
|
||||||
if UTF8Key>#32 then
|
if UTF8Key>#32 then
|
||||||
FindNextChar(UTF8Key)
|
FindNextChar(UTF8Key)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user