Wrong usage of SelStart and SelLength in OnChange event only the first time
Original Reporter info from Mantis: fello
-
Reporter name: Fabrizio Fellini
Original Reporter info from Mantis: fello
- Reporter name: Fabrizio Fellini
Description:
Try to put this code into OnChange of a TEdit with AutoSelect=True:
Edit1.Text := 'ABCDEF';
Edit1.SelStart := 1;
Edit1.SelLength := Length (Edit1.Text);
and after firing OnChange event, only the first time, nothing is selected.
When AutoSelect=False instead everything is fine.
Mantis conversion info:
- Mantis ID: 24371
- Version: 1.1 (SVN)
- Fixed in revision: r56287 (#534586fe)