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?
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…
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…
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…
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…
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…
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…
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…
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…
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…
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 =…
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…
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…
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…
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…
johnm2
  • 133
  • 2
  • 8
1
2 3 4 5 6 7 8