Disabled TEdit and TDBEdit scroll text (when SelStart should be 0)
Original Reporter info from Mantis: Stefano
-
Reporter name: Stefano
Original Reporter info from Mantis: Stefano
- Reporter name: Stefano
Description:
Hello, in a form I have:
-TEdit and TDBEdit with Enabled = True, to insert/modify data;
-TEdit and TDBEdit with Enabled = Fasle, to show description data;
I set the disabled TEdit/TDBEdit Text property on OnExit event, but also when I load the form, in case of data-aware components.
I've noted that on Linux/QT and Mac/Carbon, if the length of the text is greater als the width of the disabled TEdit/TDBEdit, the text is scrolled, and the user can see only the last part of the Text.
On Linux/GTK2 the user see the first part of the Text, and I think that would be the correct behaviour, because for description Fields is useful to see the first part of the Text and not the last.
On Linux/QT I can resolve if I use a set manually the SelStart property to 0.
On Mac/Carbon even if I set manually the SelStart property to 0 the problem remains.
The problem happens always, either on OnExit event, or on setting the description data when the form is loades.
Best regards,
Stefano