mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 12:39:15 +02:00
fixes OnGetText and OnSetText on dbedit
git-svn-id: trunk@9682 -
This commit is contained in:
parent
e22f30c84d
commit
db551f79b8
@ -34,7 +34,8 @@ begin
|
||||
//if the field is currently modifiable
|
||||
if Focused and FDataLink.CanModify then
|
||||
//display the real text since we can modify it
|
||||
Text := FDataLink.Field.DisplayText//this is wrong, but Text seems Broken
|
||||
//Text := FDataLink.Field.DisplayText//this is wrong, but Text seems Broken
|
||||
Text := FDatalink.Field.Text
|
||||
else
|
||||
//otherwise display the pretified/formated text since we can't
|
||||
EditText := FDataLink.Field.DisplayText;
|
||||
@ -85,7 +86,7 @@ begin
|
||||
//the changes have been validated
|
||||
ValidateEdit;
|
||||
FDataLink.Field.Text := Text;
|
||||
FDataLink.Field.AsString := Text;// I shouldn't have to do this, but text seems broken
|
||||
//FDataLink.Field.AsString := Text;// I shouldn't have to do this, but text seems broken
|
||||
end;
|
||||
|
||||
procedure TDBEdit.FocusRequest(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user