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
Numbering with TRichEdit in Delphi
I am trying to implement numbering in TRichEdit component, Delphi. Ideally I want to get the same behavior as in these 3rd party component:
As you can see Numbering button works similar way as Bullet button. I mean it sets FirstIdent or LeftIdent…

pyfyc
- 127
- 2
- 9
0
votes
1 answer
Copying numbered lists from a RichEdit?
When you send a WM_COPY message to a RichEdit control having a numbered list selected,
and then paste the text into Notepad, the numbers are not included. Is there any way to get them?
Thanks!

Alex Jenter
- 4,324
- 4
- 36
- 61
0
votes
0 answers
Justify a single line in RichTextBox
I'm recently working on a text editor application using RichTextBox. I'm able to divide the user's input text into multiple pages when the text content size is bigger than the page size by taking the overflowing text into another page. The…
0
votes
1 answer
VCL richedit, slow to change word colors
I have the following code in a delphi program (VCL based desktop application) to iterate through lines of text (sentences of between about 8-15 words) in a richedit, find instances of a user selected word, and then color that word 'red' should it…

Mariner
- 71
- 7
0
votes
1 answer
Problem with subclassing richedit using GWL_WNDPROC
I do this exact thing for both edit and richedit but for the latter there is an access violation, why? The same thing happens when done for tabctrl too. What am I doing wrong? How can I get it to work?
WNDPROC OriginalProc;
LRESULT CALLBACK…

mousepad
- 1
0
votes
1 answer
EN_UPDATE works unreliably?
I need to intercept key pressings and other user actions in my RichEdit box. I found it too complex to intercept user input in WM_KEYDOWN or WM_CHAR since some of the key pressings fire WM_CHAR, some of them not and also it has some other…

tester
- 43
- 2
- 8
0
votes
1 answer
C++ WIN32 - Load RTF Data to Rich Edit Control
I try to load text (formatting in RTF) to my rich text control but it doesn't work. I've even tried to use
WriteFile((HANDLE)dwCookie, myBuff, cb, (DWORD*)pcb, NULL);
instead of
*pcb = rtf->readsome((char*)pbBuff, cb);
void CreateRichEdit(HWND…

user2274060
- 896
- 5
- 18
- 35
0
votes
1 answer
Inbuilt richtextox shortcuts
I once discovered an overview of inbuilt richtextbox shortcuts somewhere on microsoft.com website, but I can't find it. It contained useful hotkeys, like Ctrl+Shift+L for switching bullet style.
Where can I find a list of inbuilt richtextbox…

George
- 143
- 1
- 1
- 4
0
votes
1 answer
RichEdit Detect when user drags picture
I need to track an event when the user grabs an image in one place of RichEdit field, drags it to another one and then drops it there.
But in those cases when the user press left mouse button, holds it down and move mouse some place elsewhere,…

tester
- 43
- 2
- 8
0
votes
1 answer
CRichEditCtrl from resource loads 1.0 instead of 2.0
I'm trying to update my application to use RichEdit 2.0; it's been using 1.0 since forever. Per the Microsoft documentation, I've changed AfxInitRichEdit() to AfxInitRichEdit2(), and I changed the class in the resource file from RICHEDIT to…

Lummox JR
- 59
- 6
0
votes
1 answer
EN_MAXTEXT in Edit and Rich Controls
Is it possible to set a user-defined value for notification rather than checking for default EN_MAXTEXT when control has been completely filled?

user22331
- 1
- 1
0
votes
3 answers
How to autodetect urls in RichEdit 2.0?
When we have a RichEdit control and send it an EM_AUTOURLDETECT message with WPARAM set to TRUE, it nicely hightlights the detected URLs and sends the EN_LINK notifications.
But it does this only for text that is entered into the control. I haven't…

Alex Jenter
- 4,324
- 4
- 36
- 61
0
votes
2 answers
Disabling/Removing caret from chat window
I have setup richedit control as a chat window and I've no idea how to remove the blinking caret from the control, does anyone know how to do that in edit/richedit control?

Sam
- 3
- 2
0
votes
1 answer
SetScrollRange Function
I've read about SetScrollRange but still didn't get what the range (min, max) is in scrollbar. I've set the rich edit control's vertical scroll bar range to (0, 100)
SetScrollRange(hwndRichEditControl, SB_VERT, 0, 100, TRUE);
Now, If I try…

Jack
- 3
- 2
0
votes
1 answer
Why does CRichEditControl hide border around words
I am using CRichEditCtrl (RichEdit20A) to display rtf-text:
m_reText.SetWindowText(strRtfText);
The problem is that the control does not display a border around words in rtf-text like this:
{\rtf1
\box\brdrdot
Hello World
}
I also tried…

vtrz
- 591
- 1
- 6
- 12