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
0
votes
0 answers
Delphi - Drag and Drop .txt Files in TMemo
I'm Trying to drag and drop text files into my Delphi app memo1 and load the text. Just like
what notepad.exe does ! when dragging any file it loads the text inside of it. but i am trying to only load specified file extension ! to accept loading on…

M0HX
- 31
- 7
0
votes
1 answer
Delphi - How to Register File extension for auto-open?
How can i auto-open a custom extension in my Delphi app ? I'm trying to make application
that loads text files but with a different extension.
Example : Text.DZ | all i want is when i click the file with .DZ Extension it opens my app automatically…

M0HX
- 31
- 7
0
votes
1 answer
lazarus - TMemo text property
I am using a TMemo box intead of a TEdit box simply because of the multi-line ability.
I was guessing and I used the .Text property to assign a value at run-time. But then I realised that there was no Text property at design time. Rather I found the…

itsols
- 5,406
- 7
- 51
- 95
0
votes
3 answers
Delphi - How to add tabs in TMEMO?
As shown like here.
pic: tabs with memo
Currently, my TMEMO displays bunch of different data, like this:
Data #1
Paragraphs
Data #2
Paragraphs
Data #N
Paragraphs
So to avoid scrolling, I want to add tabs to the Nth number.
So what components do I…

Sick Series
- 163
- 1
- 6
- 14
0
votes
1 answer
Ellipsis character does not display properly in TMemo component
A client is reporting an issue whereby she is copying from an e-mail into a screen in a program we have created with Delphi 5. The component on this screen to which she is copying is a TMemo component.
When a line of text contains an ellipsis (...)…
0
votes
1 answer
Looking for VCL control like TMemo but does not have 64kB limit
I am looking for a VCL control like TMemo that can manage multiple lines and do not have a 64kb data limit.
I have tried TRichEdit but encountered the RichEdit insert line error.
I do not need to insert rich text so a TMemo alike VCL control is…

alancc
- 487
- 2
- 24
- 68
0
votes
2 answers
How to show an arbitrary line in TMemo in FMX?
I add lines to a TMemo in Firemonkey and I want the line added to be scrolled into view when there are more lines than can be displayed in the TMemo. I cannot find how to do that. I tried
Display.Lines.Add (arg);
Caret.Line := Display.Lines.Count -…

Arnold
- 4,578
- 6
- 52
- 91
0
votes
1 answer
Advanced TMemo functionality
Good day,
Tell me, is it possible to implement a component TMemo following functionality:
Entering text in TMemo, begin the search for the first character you type;
If a match is found, we conclude that the choice in a list whose elements are…

Anvar
- 31
- 1
- 6
-1
votes
1 answer
How to delete a line found by text from a TMemo control?
I'm having a TEdit, TMemo and a button. When the user presses the button, I want to delete from that memo control a line matching the text entered in the edit box. If no matching line is found, some sort of "line not found" message should be…

Jean-Claude Pires
- 3
- 1
- 2
-1
votes
3 answers
How to save and load captions of several labels?
I need to save and load captions of several labels. I tried use TMemo for this:
procedure TForm1.Button1Click(Sender: TObject);
begin
if SaveDialog1.Execute then
begin
Memo1.Lines.SaveToFile(saveDialog1.FileName+'.txt');
…

Goerman
- 163
- 7
- 18
-1
votes
3 answers
Length of string in memo
I have memo with text in 2 lines like
aaaa : dsfdsfdsffsf
bbbbbbbbb : fgdfgff
I would like to get ":" in same line - one below the other like
aaaa :dsfsfd
bbbbbbbb :ghjghjgjhjg
I use delphi and code.
memo.lines.add(some_string + ' : ' +…

user2997342
- 87
- 2
- 3
- 8
-2
votes
1 answer
How to get values from a field and assign to a TStringList?
How do I get all the username values from the image below and can convert them into TStringList, strings or TMemo?
I tried the following code but it didn't work.
with q3 do
var txResul:stringlist
begin
Close;
SQL.Clear;
…
-2
votes
1 answer
DBGrid lines shown in a Memo
Is there any way to show a selected DBGrid record record in a memo?
I tried this type of code but this shows the titles of the columns and I want to show the fields' text.
procedure TForm6.btnShowClick(Sender: TObject);
var
l: String;
…

L. Blue
- 1
- 3
-2
votes
2 answers
Delphi - Text from file in ZIP to Memo
In some ZIP file I have file head.txt. I want to copy text from this file to TMemo on my form. Here's my code:
procedure TformMain.LoadProject(InputFileName: string);
var
MS: TMemoryStream;
zip: TZipForge;
txt: string;
begin
MS :=…

core4096
- 101
- 12
-2
votes
1 answer
Output in the memo field
void __fastcall TForm1::Step(int _Sum, int _Num, int _Val)
{
if (_Sum <= 0 || _Num <= 0 || _Sum < _Val) return;
if (_Num == 1)
{
data[theK - 1] = _Sum;
Memo1->Lines->Add("{");
for (int i = 0; i < theK; ++i)
…

user3476017
- 5
- 3