Questions tagged [memo]
117 questions
20
votes
1 answer
Why does memo.Lines use TStrings instead of TStringList?
Why does Memo.Lines use the abstract class TStrings? Why doesn't it use TStringList instead?
And should I convert it to TStringList before working with it?
![](../../users/profiles/1469584.webp)
Illiou
- 205
- 1
- 2
- 8
13
votes
3 answers
React memo components and re-render when passing function as props
Suppose I have these React components:
const Compo1 = ({theName}) => {
return (
console.log('Dr. ' + theName)}/>
);
};
const Compo2 = ({theName}) => {
function theFoo() {
console.log('Dr. ' + theName);
}
return…
![](../../users/profiles/6923555.webp)
rodrigocfd
- 2,904
- 3
- 16
- 33
9
votes
8 answers
Lazarus: DBGrid showing "(MEMO)" as the value of string fields in SQLite 3
I'm trying to write a simple SQLite 3 application using Lazarus and the SQLdb components.
I have managed to connect to the database and populate a TDBGrid. Problem is that all the columns that are text fields display the value "(MEMO)" rather then…
![](../../users/profiles/256203.webp)
HandyGandy
- 610
- 2
- 6
- 14
8
votes
1 answer
Typescript generic class equivalent for React.memo
Is there any way to set new generic in React.memo?
For example, for class components, I can use
// set generic
class GenericClass extends PureComponent {}
// and use like this
/>
In the below…
![](../../users/profiles/6160436.webp)
Thu San
- 951
- 11
- 23
8
votes
9 answers
Why C/C++ have memory issue?
I have read lots of programmers saying and writing when programming in C/C++ there are lots of issue related to memory. I am planning to learn to program in C/C++. I have beginner knowledge of C/C++ and I want to see some short sample why C/C++ can…
![](../../users/profiles/346659.webp)
LinuxNewbie
- 1
- 4
8
votes
2 answers
How to intercept (detect) a Paste command into a TMemo?
How to catch Paste command and change text of Clipboard before that text is pasted into a TMemo, but, after Paste, text in Clipboard must be same like before changing?
Example, Clipboard have text 'Simple Question', text that go in the TMemo is…
![](../../users/profiles/1015534.webp)
Srdjan Vukmirica
- 693
- 2
- 8
- 22
7
votes
4 answers
Load Log.txt From other apps to Memo - Delphi7
I am trying to record the session log from other applications (Proxifier) to a Memo.
I've tried using the command :
procedure TForm1.TimerTimer(Sender: TObject);
begin
Memo1.Lines.LoadFromFile('C:\PMASSH\Proxyfier\Profiles\Log.txt');
end;
but at…
![](../../users/profiles/1848089.webp)
Pujangga Adhitya
- 71
- 1
- 3
6
votes
5 answers
Newline Inside a String To Be Shown At a TMemoBox
I'm building a String called FullMemo, that would be displayed at a TMemoBox, but the problem is that I'm trying to make newlines like this:
FullMemo := txtFistMemo.Text + '\n' + txtDetails.Text
What I got is the content of txtFirstMemo the…
![](../../users/profiles/126353.webp)
Nathan Campos
- 26,567
- 57
- 185
- 289
5
votes
3 answers
How I can replace strings in a memo (FastReport)?
I have a memo object in my report, and a need replace "%...%" strings. For example, in Rave Report:
MemoBuf.ReplaceAll('%my_str%', "new string", false);
But, don't exists a method (or property) to replace text, in the FastReport. How I can do…
![](../../users/profiles/955616.webp)
André
- 139
- 1
- 1
- 10
5
votes
2 answers
Delphi - AutoComplete Memo
I am requiring a Memo with Auto-completion functionality.
Ultimately, I would like the ability to display a custom auto-completion list when the user presses a hotkey (Ctrl-space) similar to Delphi IDE auto-completion.
I have the TMS AdvMemo, but…
![](../../users/profiles/355657.webp)
Simon
- 8,517
- 13
- 64
- 107
4
votes
1 answer
Delphi - Get the whole word where the caret is in a memo
I need to be able to select the whole word of a TMemo if the caret is directly adjacent or in a word in the memo.
Consider the following (where | is a caret)
Here is some text| = Select text
Here is so|me text = Select some
|Here is some text =…
![](../../users/profiles/355657.webp)
Simon
- 8,517
- 13
- 64
- 107
4
votes
1 answer
Pass Children prop to React Memo component
I am currently in the process of optimising a number of React SFC components with the use of React.memo.
Most of these components have children. The project also uses TypeScript.
I was starting to get the impression that memo components did not…
![](../../users/profiles/3669204.webp)
AdamMcquiff
- 1,974
- 4
- 22
- 40
4
votes
3 answers
How do I shallow test a react component wrapped in memo and withStyles?
I have a component which is wrapped in both a Material-UI withStyles HOC and a React memo HOC.
I am unable to test this component as I am unable to call dive():
ShallowWrapper::dive() can only be called on components
The only option I am currently…
![](../../users/profiles/4520036.webp)
Ed Allonby
- 85
- 2
- 7
4
votes
1 answer
Create Memo in R Markdown
I am trying to create the following memo format in R Mardown:
https://texblog.org/2012/03/07/writing-a-memo-in-latex/
---
csl: texMemo.csl
\memoto{someone}
output: pdf_document
---
I'm not sure where to put the text, whether it does in the YAML…
![](../../users/profiles/10587956.webp)
Vincent Risington
- 157
- 8
4
votes
1 answer
removing last blank line in memo
i searched google but can't seem to find a working solution.
the situation is unique. i need to "add" lines with a comment at various times. whenever i press the F9 key, a line number will dispaly followed by a colon ":" char and then i enter some…
![](../../users/profiles/1672153.webp)
johnm2
- 133
- 2
- 8