TEdit component loses SelStart and SelLength values
Original Reporter info from Mantis: fello
-
Reporter name: Fabrizio Fellini
Original Reporter info from Mantis: fello
- Reporter name: Fabrizio Fellini
Description:
A TEdit, with AutoSelect=False and text partially or totally selected, loses sometimes SelStart and always SelLength values when I change focus using the keyboard (Tab key or other methods).
In the test application, when Edit1 loses the focus, I save Edit1.SelStart in Label1.Caption, and Edit1.SelLength in Label2.Caption. Pressing the Tab key 3 times, SelStart value becomes from 1 to 4, and SelLength from 3 to 0.
Under Windows widgetset, changing the focus repeatedly, values remain always 1 and 3.
Additional information:
If I select text using "Shift + Left Arrow", only SelLength is reset, while SelStart retains its value.