View Issue Details

IDProjectCategoryView StatusLast Update
0025653LazarusLCLpublic2014-02-14 14:58
ReporterSergey BulbaAssigned ToBart Broersma 
Status closedResolutionfixed 
Platformwin32OSwindowsOS Versionxp,7
Product Version1.0.14Product Build43446 
Target VersionFixed in Version1.2.0 
Summary0025653: TMemo: WantReturns does not work
Descriptionif WantReturns is false, TMemo accepts cr/lf via Enter-key pressing (like if WantReturns is true). After that Memo1.Caption contains f.e. 'text1'0000013#10'text2'0000013#10'etc'. If TButton is placed with Default=True to a form, you can press Enter during editing TMemo, but TButton.OnClick is not called.
Steps To ReproduceNew project, place Memo1 to a Form1, set Memo1.WantReturns to False, compile and run. Press some char keys and Enter in the Memo1, and you'll see new line after each Enter pressing.
Additional InformationPlace Button1 and set Button1.Default to True to ensure that Button1.OnClick does not work when pressing Enter in Memo1 text editor.

Just tested same application in Delphi 7, and all work as expected.
TagsNo tags attached.
Fixed in Revision
Attached Files


Sergey Bulba

2014-01-31 15:25

reporter   ~0072788

Just tested in Lazarus 1.2RC2, and this bug is fixed there.

Can to close, sorry :(

Bart Broersma

2014-01-31 23:37

developer   ~0072790

Confirmed in 1.0 fixes branch.
Resolved in 1.2 as per original reporter.

Issue History

Date Modified Username Field Change
2014-01-31 15:00 Sergey Bulba New Issue
2014-01-31 15:25 Sergey Bulba Note Added: 0072788
2014-01-31 23:37 Bart Broersma LazTarget => -
2014-01-31 23:37 Bart Broersma Note Added: 0072790
2014-01-31 23:37 Bart Broersma Status new => resolved
2014-01-31 23:37 Bart Broersma Fixed in Version => 1.2.0
2014-01-31 23:37 Bart Broersma Resolution open => fixed
2014-01-31 23:37 Bart Broersma Assigned To => Bart Broersma
2014-02-14 14:58 Sergey Bulba Status resolved => closed