mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 05:30:59 +02:00
lcl: Fix Paste / Clear / Cut in TDBMemo. Similar to TDBEdit / TDBComboBox
git-svn-id: trunk@32496 -
This commit is contained in:
parent
017292bb65
commit
355083fd19
@ -187,7 +187,17 @@ begin
|
||||
LM_CLEAR,
|
||||
LM_CUT,
|
||||
LM_PASTE:
|
||||
FDatalink.Edit;
|
||||
if FDataLink.CanModify then
|
||||
begin
|
||||
//LCL changes the Text before LM_PASTE is called and not after like Delphi. Issue 20330
|
||||
//When Edit is called the Text property is reset to the previous value
|
||||
//Add a workaround while bug is not fixed
|
||||
FDataLink.OnDataChange := nil;
|
||||
FDatalink.Edit;
|
||||
FDataLink.Modified;
|
||||
FDataLink.OnDataChange := @DataChange;
|
||||
inherited WndProc(AMessage);
|
||||
end;
|
||||
end;
|
||||
inherited WndProc(AMessage);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user