TCustomEdit.OnEditingDone fired at start of program under cetain conditions
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
See forum: http://forum.lazarus.freepascal.org/index.php/topic,34619.0.html
When a form contains a TCustomEdit and that TCustomEdit is ActiveControl and you launch the the application from Windows explorer by selecting the file and then press the &LtPos;Enter> key, then at program start TCustumEdit.OnEditingDone is fired.
This does not happen when you launch the app by double-clicking on it in Explorer.
This also happens (but not always) when you launch the app from the console (cmd.exe).
Steps to reproduce:
Unzip and build attached sample application.
Open Windows explorer.
Select the "ed.exe" file by left-clicking once.
Press &LtPos;Enter>
Observe the output in the console: TForm1.Edit1EditingDone: Sender is Edit1
Additional information:
In the forum it is said that the bug cannot be reproduced with Lazarus 1.4.2, so it sounds like a regression.
Haven't tested other widgetsets yet.
Mantis conversion info:
- Mantis ID: 30836
- OS: Windows
- OS Build: 7
- Build: r52861
- Platform: i386
- Version: 1.7 (SVN)
- Fixed in revision: 53324 (#d725d7f5)
- Target version: 1.6.2