View Issue Details

IDProjectCategoryView StatusLast Update
0037553LazarusLCLpublic2020-08-12 09:47
ReporterLagunov Aleksey Assigned ToJuha Manninen  
Status closedResolutionfixed 
PlatformGTK2OSFedora Linux 
Product Version2.1 (SVN) 
Summary0037553: after rev 63725 not work memo.lines.add
DescriptionIf you call Memo1.Lines.Clear; in the OnCreate form
then the next call to Memo1.Lines.Add('Line 1'); is executed strangely.
See the example.
Steps To ReproduceRun app
press button1
text in Memo1 is deselected and mouse click in memo1 clear text
TagsNo tags attached.
Fixed in Revisionr63726
WidgetsetGTK 2
Attached Files


related to 0030682 resolvedJuha Manninen [FEATURE REQUEST] Add TextHint to TComboBox and TMemo 
related to 0035967 resolvedJuha Manninen TMemo.TextHint don't work on Win32 
related to 0037506 resolvedJuha Manninen TEdit.texthint not translated 


Lagunov Aleksey

2020-08-12 06:20

reporter (109,188 bytes)

Juha Manninen

2020-08-12 08:51

developer   ~0124787

Last edited: 2020-08-12 08:53

View 2 revisions

Apparently the emulated TextHint never worked with TMemo. Its TextHint is not published but you can set it in code.
Adding to your example project :

 procedure TForm1.FormCreate(Sender: TObject);
   Memo1.TextHint:='My own TextHint';

and things go haywire.
I could restore the earlier behavior by restoring test
 " (FTextHint <> '') "
in function TCustomEdit.CanShowEmulatedTextHint, but I would like to fix it properly. Investigating ...
Native TextHint works in QT5's TMemo.

Juha Manninen

2020-08-12 09:31

developer   ~0124788

Oh boy, it is nasty. I disabled the emulated TextHint completely for TMemo. If you find a way to make it work, please reopen and attach a patch.

Issue History

Date Modified Username Field Change
2020-08-12 06:20 Lagunov Aleksey New Issue
2020-08-12 06:20 Lagunov Aleksey File Added:
2020-08-12 07:20 Juha Manninen Assigned To => Juha Manninen
2020-08-12 07:20 Juha Manninen Status new => assigned
2020-08-12 08:31 Juha Manninen Relationship added related to 0030682
2020-08-12 08:32 Juha Manninen Relationship added related to 0035967
2020-08-12 08:36 Juha Manninen Relationship added related to 0037506
2020-08-12 08:51 Juha Manninen Note Added: 0124787
2020-08-12 08:53 Juha Manninen Note Edited: 0124787 View Revisions
2020-08-12 09:31 Juha Manninen Status assigned => resolved
2020-08-12 09:31 Juha Manninen Resolution open => fixed
2020-08-12 09:31 Juha Manninen Fixed in Revision => r63726
2020-08-12 09:31 Juha Manninen LazTarget => -
2020-08-12 09:31 Juha Manninen Widgetset GTK 2 => GTK 2
2020-08-12 09:31 Juha Manninen Note Added: 0124788
2020-08-12 09:47 Lagunov Aleksey Status resolved => closed