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
0
votes
1 answer
Rich edit control: hiding the angle-bracketed link from an RTF URL
I want to display an RTF file with some links in it; the links have the RTF encoding:
{\field{\*\fldinst{HYPERLINK "http://a-link.com" }}{\fldrslt{\cf1\ul here is a link}}}
In WordPad and Word, this displays as "here is a link", underlined, as…

Monsieur
- 9
- 2
0
votes
1 answer
Can i display multiple views of the same file with CRichEditCtrl?
I have to CRichEditCtrl controls in a dialog window with multiple tabs which might display the same file.
How can i synchronize the editing in them?

Lothar
- 12,537
- 6
- 72
- 121
0
votes
1 answer
How can I know if all the text is selected in a TRichEdit when the text has three or more lines?
I have a TRichEdit with some RTF in it (text with formatting only) and I want to know if all the content of the TRichEdit is selected. To do so, I do:
var AllSelectd: Boolean;
//...
AllSelectd := MyRichEdit.SelLength = MyRichEdit.GetTextLen;
which…

AlexV
- 22,658
- 18
- 85
- 122
0
votes
1 answer
C# UWP Richeditbox Zooming content is bugging
So I created a RichEditBox in UWP and made a custom style to set ZoomMode="Enabled" in the Scrollviewer.
After that I zoomed and some lines of the text were gone, or only the half of the text was visible.
Here a short video:
So you can see the text…

FrozenAssassine
- 1,392
- 1
- 7
- 16
0
votes
0 answers
How set text clickable in richedit
In internet I found how to recognize url in richedit and make it clickable like a link and go to website.
that is the code to detect web links:
var
mask: Word;
begin
mask := SendMessage(RichEdit1.Handle, EM_GETEVENTMASK, 0, 0);
…

Amir Tofighi
- 21
- 3
0
votes
1 answer
RichEdit control doesn't show horizontal scrollbar when switching tabs
I have a tab control with some RichEdit controls. Whenever the active tab changes, I hide the RichEdit control belonging to the old page and show the RichEdit control belonging to the new page. This works except that the horizontal scrollbar of the…

Andreas
- 9,245
- 9
- 49
- 97
0
votes
0 answers
Progress bar till the function is executing
In this code Base64FromBitmap() converts an image to a string, then, the result will appear in a RichEdit. Sometimes, this process takes a few seconds (based on the size of an image). I want to add a Progressbar that shows the progress until…

shdotcom
- 157
- 1
- 11
0
votes
1 answer
How can i get the TRect of the whole content of the RichEdit?
How can i get the TRect of the whole content of the RichEdit?
i have a function to save the richEdit as image using the TRangeformat, but the problem is we are the one to define the rect where to be printed. how can i get the exact rect to print the…

XBasic3000
- 3,418
- 5
- 46
- 91
0
votes
1 answer
In MFC CRicheditctrl, how to get the reactangle occupied by the character
In windows OS, in MFC CRichEditctrl, PosFromChar() gives top left position of a character, how to get the height of the character or a rectangle occupied by that character?

user369287
- 692
- 8
- 28
0
votes
1 answer
JavaFx RichText RunTime Error java.lang.NoClassDefFoundError: org/fxmisc/richtext/TextFlowLayout
I have a runtime error for java.lang.Exception: java.lang.NoClassDefFoundError: org/fxmisc/richtext/TextFlowLayout. I'm using java14 and JavaFx13. I use Maven to download the dependencies and use the maven-assembly-plugin to package my dependencies…

Eber
- 169
- 8
0
votes
2 answers
Text highlighting and UNDO in Richedit
I'm trying to implement a text highlighting and undo in RichEdit. The code below marks 5 and 6 chars but undo doesn't work (the text doesn't change) though Edit_CanUndo returns 1. If I turn off a updateHighlighting then undo works but it rolls back…

Aikon Mogwai
- 4,954
- 2
- 18
- 31
0
votes
0 answers
How to synchronize selection between two RichEdits in Delphi
I have 2 RichEdits with the same content, but with different width and height. When I select a certain word in one RichEdit, I want to see the same word selected in another one. Using SelStart / SelLength doesn't select the exact same word (most…

Max Smith
- 395
- 1
- 2
- 13
0
votes
2 answers
What is the best control I can pick in order to display a tweet using winapi?
The control needs to be able to paint text on several lines, respond to clicks on URLs or @user tags, etc, which need to have a different color in order to stand out.
The first obvious choice was a richedit control, but I ran into many issues with…

eeyore22
- 13
- 5
0
votes
1 answer
Richedit control display the content of a string in winAPI c++ app
I have a richedit control on a dialog. I want to populate the richedit control with a string. The richedit control itself displays properly. But I don't know how to populate the richedit control with a string. I took a guess at it below, in the…

Josh Bond
- 1,719
- 4
- 17
- 26
0
votes
0 answers
How do I use EN_PROTECT from the WinAPI to partially protect characters in a Rich Edit Control?
I am trying to create Console-like behaviour in my Rich Edit control using the WinAPI through C, and would like previously entered information to be protected from editing by the user.
The control seems to be working fine mostly for my purposes,…

Usernamed
- 41
- 5