Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
7a666ba1
Commit
7a666ba1
authored
Nov 26, 2018
by
Jesus
Browse files
LCL: Fix unbound dblookupcombobox autocomplete, based on fix from melwinek issue
#34298
git-svn-id: trunk@59666 -
parent
758c0090
Changes
1
Hide whitespace changes
Inline
Side-by-side
lcl/include/dblookupcombobox.inc
View file @
7a666ba1
...
...
@@ -43,7 +43,7 @@ end;
function
TDBLookupComboBox
.
DoEdit
:
boolean
;
begin
if
(
FDataLink
.
DataSource
=
nil
)
or
(
DataField
=
''
)
then
begin
if
IsUnbound
then
begin
if
DetectedEvents
and
DBCBEVENT_SELECT
<>
0
then
begin
UpdateData
(
self
);
DoOnSelect
;
...
...
@@ -55,6 +55,11 @@ begin
Result
:=
inherited
DoEdit
;
end
;
function
TDBLookupComboBox
.
IsUnbound
:
boolean
;
begin
result
:=
(
FDataLink
.
DataSource
=
nil
)
or
(
DataField
=
''
);
end
;
procedure
TDBLookupComboBox
.
ActiveChange
(
Sender
:
TObject
);
begin
if
FDataLink
.
Active
then
...
...
@@ -93,7 +98,7 @@ end;
procedure
TDBLookupComboBox
.
UTF8KeyPress
(
var
UTF8Key
:
TUTF8Char
);
begin
if
not
FDataLink
.
CanModify
then
if
(
not
IsUnbound
)
and
(
not
FDataLink
.
CanModify
)
then
UTF8Key
:=
''
;
inherited
UTF8KeyPress
(
UTF8Key
);
end
;
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#34298 (closed)
·
Jul 29, 2021
mentioned in issue
#34298 (closed)
mentioned in issue #34298
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment