Questions tagged [trichedit]

TRichEdit is a VCL control that wraps the Windows Rich Edit common control. It is defined in the ComCtrls.pas unit.

TRichEdit is a VCL control that wraps the Windows Rich Edit common control. It is defined in the ComCtrls.pas unit.

68 questions
0
votes
0 answers

TRichEdit and the encoding of Unicode characters in RTF

In Delphi 11.1.5, is there a way to make TRichEdit.Lines.SaveToStream() encode Unicode characters in \uXXXX format instead of \'XX in the generated RTF? I have to interpret the returned RTF content, and I can't enforce the charset value set at the…
0
votes
0 answers

Rendering with Delphi 11 a TRichEdit's contents on form.canvas differs in size on printer.canvas

In my application (Delphi 11, win 10) I render on an image canvas the content of a TRichEdit component with the following code. procedure TmainForm.printRTF(RE : TRichEdit; aRect : TRect);// aRect calculated with ppi=127 var fmt : TFormatRange; …
JimPapas
  • 715
  • 2
  • 12
  • 27
0
votes
0 answers

How to get rid of the built-in Paste shortcut in TRichEdit?

In a 32-bit VCL Application in Windows 10 in Delphi 11 Alexandria, I have a TRichEdit control. (Please note that the TRichEdit class in Delphi 11 Alexandria differs from previous Delphi versions). Now, it seems that TRichEdit has a BUILT-IN Paste…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
2 answers

Function to extract plain text from RTF file gives wrong result

In a 32-bit VCL Application in Windows 10 in Delphi 11 Alexandria, I need to search for text in an RTF file. So I use this function (found here) to extract the plain text from the RTF file: function RtfToText(const RTF_FilePath: string;…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
2 answers

How to highlight only the lines contain the 'MyString' in a RichEdit?

I have created a small program the read a text file. Once the text file is opened in a RichEdit, I want to change the background color of lines that contain a certain string, or to hide all lines that do not contain the string. Is it possible? I…
SHKODRAN
  • 15
  • 1
  • 8
0
votes
1 answer

Delphi 11 TRichEdit hyperlink stopped working

I used this thread to add hyperlinks to my TRichEdit components. But, since installing the new Delphi 11, they have stopped working. Has anyone figured out why yet?
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
0 answers

Using Delphi's TRichEdit, is there a way to set up a "link" so someone can click it to open a file?

I'm doing a kind of grep in a Delphi app where the user can search some files in a folder for a search term. Then in a TRichEdit, for each file with a match, I'm showing a filename and below it I show lines that contain the search term. I'd like to…
David
  • 101
  • 1
  • 10
0
votes
2 answers

How to get the progress of a TRichEdit?

I have a simple 'brut' big text file (20MB). I would like to show it in a TRichEdit. The problem is that it takes 6 seconds for the showing. I would like to put a progess bar in the bottom of the application to avoid this bad UX design. My question…
John Smith
  • 45
  • 3
0
votes
0 answers

TRichEdit adds blanks lines when change wordwrap (any recreate property)

The following was found in Embarcardero RAD Studio 10.2. I have not looked at other versions. If you have a TRichEdit on your form that contains existing text (more than 1021 characters), and change the WordWrap (or any other recreate window)…
GeoffW
  • 145
  • 1
  • 7
0
votes
2 answers

RichEdit Vertical Text Aligment

How can i align the text in a TRichEdit vertically centered. There is a property for aligning paragaph by horizontal but there isn't any property for vertical alignment. I use C++ builder.
tutalia
  • 285
  • 3
  • 16
0
votes
0 answers

Delphi TRichEdit page setup

I have an RTF document with defined page settings: (...}\paperw16840\paperh11907\margl794\margt709\margr794\margb983\viewkind4\\uc1\trowd\....) In my app I use a TRichEdit to show the document. The TRichEdit has a TPanel as its Parent, and is using…
JimPapas
  • 715
  • 2
  • 12
  • 27
0
votes
2 answers

How to select certain table rows in TRichedit with Delphi (Xe10)

i have a TjvRichedit control containing a table with some rows/cells filled with text. I want to select some entire rows (eg. rows firstLine and firstLine+1) and copy them to clipboard (or to a stream). I use the code bellow : SelStart :=…
JimPapas
  • 715
  • 2
  • 12
  • 27
0
votes
1 answer

C++ Builder XE5 , how to show selected text in richedit

I want to know the method or the code that I can use to have the selected text from the RichEdit in VCL on C++Builder XE5. I can change the color of selected text with this code : re->SelAttributes->Color = TheColorWanted; But I don't know how can…
0
votes
2 answers

How to save specific part of a TRichEdit text RTF (c++ codegear)

I'm creating a search features in an existing c++ CodeGear project. When you double-click a word, the background of all occurrences of the word is paint in green like in notepad++. Before color is applied, I'm saving the original TRichEDit text in a…
pikarie
  • 183
  • 1
  • 12