Questions involving the Windows Rich Edit control. This tag also applies when using wrappers around the underlying Rich Edit control (e.g. RichTextBox in WinForms, TRichEdit in VCL, RichEditBox in WinRT) when attempting to operate with the underlying control, or using features of the control.
Questions tagged [richedit]
285 questions
4
votes
1 answer
Printing a richedit with background colour
I'm outputting text from a delphi TRichedit control to a printer. There is a background image, so I'm using the EM_FORMATRANGE with this logic ...
myrichedit.Perform(EM_FORMATRANGE, 1, Longint(@Range));
... and that works fine except that when the…

Terry
- 274
- 1
- 4
- 16
4
votes
4 answers
How can I add an HyperLink in TRichEdit using Delphi
How can I add an HyperLink in a TRichEdit (using Delphi).
I need to have something like:
"This is my text, click here to do something."
Richard
4
votes
1 answer
RichEdit not respecting PlainText with pasted content
I create a new application, drop on a TRichedit and set the PlainText property to true. I then run the application and paste some rich formatted text into the RichEdit.
I would expect it to display as plain text however it shows the content with the…

Wizzard
- 12,582
- 22
- 68
- 101
4
votes
5 answers
How to change selection color in RichEdit control?
Basically, I want to change the standard RichEdit selection color in places where it is above colored text.
I'm implementing a "highlight" function in a RichEdit control (like a yellow marker).
Now when I apply highlight on the selected text,…

Alex Jenter
- 4,324
- 4
- 36
- 61
4
votes
1 answer
How to clear "temporary" (tomApplyTmp) formatting from a RichEdit?
In the 2015 blog post RichEdit Colors, Microsoft developer Murray Sargent noted that the RichEdit controlsupports "temporary" formatting; used by spell checkers and IME editors:
Temp formatting
IMEs and proofing tools like to use character
…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
4
votes
0 answers
RTF <-> RTFD anyone? How to display RTF with embedded images (Windows) in NSTextView on a Mac and vice versa?
I have some RTF data shared between Windows and Mac. I use RichEdit control to edit this data for Windows and so if user inserts some images, I get the RTF with embedded images.
Now I need to display (and edit) this data on a Mac, but NSTextView…

macnewbie
- 41
- 3
4
votes
2 answers
Get richtext from a richedit in Delphi
Is there a way to get the RTF data from a richedit without using savetostream as in
strStream := TStringStream.Create('') ;
try
RichEdit.Lines.SaveToStream(strStream);
Text := strStream.DataString;
strStream.CleanupInstance;
finally
…

Tim
- 1,549
- 1
- 20
- 37
4
votes
1 answer
How to make a single line bold in a RichEdit?
How can I get one specific line to be bold in a RichEdit?

User049
- 127
- 1
- 11
4
votes
0 answers
Accessibility support for a Win32 control based on RichEdit
I have implemented custom Win32 control based on RichEdit. I insert custom OLE objects into the rich text using method 'InsertObject' of the IRichEditOle. Custom objects just show some text and some more additional functionality.
This my control is…

Viktor Zhuravel
- 41
- 2
4
votes
1 answer
Richedit 2.0 Undo after WM_SETTEXT
We use Richedit 2.0 for our script editor, which has automatic multi-level undo and redo for when you type. When we want to build our script or when the script opens, I reformat the text and send it to the rich edit control by WM_SETTEXT. This…

user3162134
- 287
- 1
- 10
4
votes
2 answers
How to get text with RTF format from Rich Edit Win API?
(Sorry for my crazy English)
I want to get all the text in Rich Edit with RTF format, not plain text to a variable. I tried SendMessage() with EM_STREAMOUT to write directly Rich Edit to file, but I can't save the content to specific variables, for…

quangteo.media
- 113
- 1
- 8
4
votes
3 answers
How to implement the mouse click for URLs at rich edit control
I added a read-only rich edit 2.0 control to my dialog (code is using C windows API, the dialog is created by using function DialogBox)
At the dialog call back, at the WM_INITDIALOG, I add the following code to enable url detection and also enable…

windfly2006
- 1,703
- 3
- 25
- 48
3
votes
2 answers
How do I display a Word document in a rich-edit control?
I'm building a Delphi app and I want to read a Word document and display it in a rich edit. How can I do that?

Andrei
- 61
- 2
- 3
3
votes
1 answer
Switch Inno Setup license memo to RTL mode
I'm creating a installer with multi language,
some of language need RTL direction to show naturally.
This is the code I'm using for my license page:
LicenseMemo := TNewMemo.Create(WizardForm);
with LicenseMemo do
begin
Parent :=…

sanab3343
- 154
- 1
- 11
3
votes
1 answer
Move TRichEdit Caretpos
is there a way to change the caret position in pixel?
i would like to move the care pos everytime i move the mouse mouse.
like:
Onmousemove:
MoveCaretPos(X, Y);

XBasic3000
- 3,418
- 5
- 46
- 91