View Issue Details

IDProjectCategoryView StatusLast Update
0023369LazarusLCLpublic2020-03-31 12:50
ReporterStefano Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version1.0.2 
Summary0023369: Disabled TEdit and TDBEdit scroll text (when SelStart should be 0)
DescriptionHello, 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
TagsNo tags attached.
Fixed in Revision62827
LazTarget-
WidgetsetCarbon
Attached Files

Activities

Claudio Romero

2013-11-11 14:09

reporter   ~0071263

Last edited: 2013-11-11 14:09

View 2 revisions

I have the same issue.
I retest with lazarus-1.2RC1-0.tar.gz (2013-11-03)

An easy way for reproduce under linux qt is

Edit1.Text:='test (put many spaces here) ';

Regards

Zeljan Rikalo

2015-04-07 17:38

developer   ~0082698

Setting text under Qt moves SelStart to the last char. What can I do here ? Have you checked value of SelStart when you set text ?

Zeljan Rikalo

2020-03-31 12:49

developer   ~0121794

Qt/Qt5 is fixed with r62827

Zeljan Rikalo

2020-03-31 12:50

developer   ~0121795

Removed Qt from Widgetsets since it's fixed.

Issue History

Date Modified Username Field Change
2012-11-22 23:24 Stefano New Issue
2012-11-22 23:24 Stefano Widgetset => Carbon, QT
2013-11-11 14:09 Claudio Romero Note Added: 0071263
2013-11-11 14:09 Claudio Romero Note Edited: 0071263 View Revisions
2015-04-07 17:38 Zeljan Rikalo Note Added: 0082698
2020-03-31 12:49 Zeljan Rikalo Status new => feedback
2020-03-31 12:49 Zeljan Rikalo LazTarget => -
2020-03-31 12:49 Zeljan Rikalo Note Added: 0121794
2020-03-31 12:50 Zeljan Rikalo Fixed in Revision => 62827
2020-03-31 12:50 Zeljan Rikalo Widgetset Carbon, QT => Carbon
2020-03-31 12:50 Zeljan Rikalo Note Added: 0121795