TMemo: WantReturns does not work
Original Reporter info from Mantis: Bulba
-
Reporter name: Sergey Bulba
Original Reporter info from Mantis: Bulba
- Reporter name: Sergey Bulba
Description:
if WantReturns is false, TMemo accepts cr/lf via Enter-key pressing (like if WantReturns is true). After that Memo1.Caption contains f.e. 'text1'#13 (closed)#10 (closed)'text2'#13 (closed)#10 (closed)'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 reproduce:
New 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 information:
Place 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.
Mantis conversion info:
- Mantis ID: 25653
- OS: windows
- OS Build: xp,7
- Build: 43446
- Platform: win32
- Version: 1.0.14
- Fixed in version: 1.2.0