TMemo is a VCL component wrapping a standard Windows multiline edit control. It's defined in the StdCtrls.pas unit.
Questions tagged [tmemo]
91 questions
1
vote
1 answer
Firemonkey TMemo each line with a different color
Adding lines in a TMemo (Firemonkey), each line with a different color?
Note: Firemonkey doesn't have RichEdit.

pcbb
- 67
- 2
- 4
1
vote
1 answer
Memo in xe2 doesn't properly display umlaut character stored in ansi charset
We have an application in delphi 2007 which writes contents of memo to a text file and loads it back.
TMemo charset is set to AnisCharSet and Enable runtime themes in project options --> application is turned off.
The content that is loaded is…

SK9
- 87
- 11
1
vote
2 answers
Memo and create file and folder?
I'm new to Delphi and i'm a french user so sorry for my bad english...
So it is possible to create a file written in TMemo?
test.txt
dir1/dir2/text.txt
dir3/
My TMemo there are 3 lines, so I would like to take the first line and create the file…

Kate
- 320
- 1
- 6
- 19
0
votes
2 answers
How to get the value of an attribute and display it on a Tmemo
I have an xml file that looks like this...
I would like to take the value of the attribute color for each element, and display it on to a memo. I…

livelaughlove
- 376
- 3
- 9
- 21
0
votes
2 answers
How to make TMemo treat new lines in Linux style?
I have a string that contains Linux style line breaks. Linux style is #13 while Windows style is #13#10.
I would like to show this string in a TMemo. Looks like TMemo accepts only Windows style and does not treat #13 as a new line.
Is the only way…

vico
- 17,051
- 45
- 159
- 315
0
votes
1 answer
Changing a TMemo font size @ runtime
How does one change a FMX.TMemo font size @ runtime? In the following app the Spinbox1.Change method does not change the Memo.Font.Size. I have tried the BeginUpdate() and EndUpdate() methods of the TMemo. I have also tried Memo1.Repaint() and…

GrooverMD
- 131
- 3
- 12
0
votes
2 answers
Set tMemo top item
How can I make a tMemo display starting at the top item please?
I have not found anything like a "TopItem", and wonder if it has to be done
by somehow sending messages (keydown control, keydown home, keyup home, keyup control)
but despite reading…

Chester
- 11
- 1
0
votes
1 answer
Paste multiple string to TMemo in C++Builder
I have a vector of Strings from a TListView control. I want to copy them to the clipboard, then paste them into a TMemo control such that each line from the list is on a separate line in the TMemo. Everything I've tried so far pastes as a single…

user2113260
- 61
- 4
0
votes
0 answers
What's the proper way to modify an existing FMX control?
I need to modify the behavior of the built-in FMX TMemo control. I never done this before and want to know what's the proper way to do it. Under C:\Program Files (x86)\Embarcadero\Studio\21.0\source\fmx I found there are several related…

user130268
- 1,341
- 2
- 12
- 20
0
votes
0 answers
How to underline words after spell check using Delphi
I'm trying to develop a text editor with spell checker capability. I can detect erroneous words successfully.
Many text editors underline (red color) the erroneous words like this.
How can I underline any word this way? Any TMemo, TRichEdit or…

Xel Naga
- 826
- 11
- 28
0
votes
2 answers
How do I find out the number of characters in a tmemo component?
What I am trying to do is make a button that takes the amount of chars in a memo and output it in a label
I apologise if this seems like a silly question but I am still learning about Delphi.
0
votes
1 answer
How to disable the popup menu of TMemo?
I'm using Firemonkey TMemo component in my desktop application, I hope that when the user right-clicks or Long-Taps on the Memo , the default menu will not been pop up.

Leo
- 1,947
- 2
- 20
- 37
0
votes
0 answers
Firemonkey TMemo OnChangeTracking strange behavior on Android
Does any one had same issue, then on run time created TMemo fires OnChangeTracking only then TMemo is empty (no lines) and only for the first entered symbol. And also then all text is deleted?
If TMemo is created in design time it works as it…

Drius
- 27
- 4
0
votes
1 answer
Firemonkey styled TMemo does not get focus
I dropped a TMemo and a regular TStyleBook on a Form. I edited the custom style for the TMemo by adding a TRectangle to background so TMemo now has a different background color, and changed the TMemo.StyleLookup property to the actual StyleName, but…

user2383818
- 709
- 1
- 8
- 19
0
votes
1 answer
Changing the background color behind a selected substring in a Firemonkey TMemo component
I wish to programmatically set focus on a particular substring in a (Delphi 10.3.1) Firemonkey TMemo component, by painting a yellow background behind the substring. The code below paints a yellow rectangle in the right position, but the rectangle…

user11935527
- 101
- 1
- 7