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
1
vote
2 answers
Rich Edit Control paints whole application black after unminimize
SOLVED: I've posted my solution as an answer.
Here's my problem: (gif) (Sort of solved if I reload the bitmaps for painting the background image when unminimizing before any WM_PAINT message.)
It happens whenever I unminimize the application, time…
1
vote
1 answer
How to find runs of bold text inside of a RichEdit control?
I can obviously do it one character at a time using EM_GETCHARFORMAT, but it is extremely slow.
One idea is to somehow use the ITextDocument/ITextFont interfaces, the other is to use the EM_STREAMOUT message and manually parse the RTF. But I can't…

Alex Jenter
- 4,324
- 4
- 36
- 61
1
vote
2 answers
For a RICHEDIT control, what is a character class and what are valid values?
From the documentation of EDITWORDBREAKPROCA callback function:
Parameters
code
Type: int
The action to be taken by the callback function. This parameter can be one of the following values.
WB_CLASSIFY
Retrieves the character class and word break…

Adrian
- 10,246
- 4
- 44
- 110
1
vote
1 answer
How to synchronize two RichEdit's scrolling position?
I add my program two RichEdit which the one displays binary contents and the another shows the index of the byte. I hope these two edit always anchor on the same position while/after scrolling.
A possible way is to handle the main RichEdit's…

jl81
- 137
- 1
- 9
1
vote
0 answers
How to create a Rich Edit programmatically in MFC
After the previous question with issue in inserting a Rich Edit control to MFC Dialog based application I am here with another question:
I am using Visual Studio 2015 So I am creating a Dialog based MFC application:
If I add a Rich Edit control from…

Maestro
- 2,512
- 9
- 24
1
vote
2 answers
How to render RichEdit Text to a canvas by keeping font smoothness
i am trying to render RichEdit to a bitmap. I want to make backgrond tranparent.
I could achieve that by the code above. The problem is that when i set bitmap as tranparent
only the transparent color becomes transparent. Is there any way to handle…

tutalia
- 285
- 3
- 16
1
vote
1 answer
Unable to create multiple Rich Edits using AutoIt v3.3.8.1
I am using AutoIt v3.3.8.1 for Win2K compatibility. I am trying to create a form containing multiple Rich Edits. The relevant code section is as follows:
#include
#include
#include…

thegreatjedi
- 2,788
- 4
- 28
- 49
1
vote
2 answers
How to set caret position by right mouse button click for TRichEdit?
When I right-click a word in a RichEdit control, I want the cursor to be positioned inside that word the way it happens with left mouse button click.
Is it possible to achieve?

Max Smith
- 395
- 1
- 2
- 13
1
vote
0 answers
RichEdit 8 and Direct2D/DirectWrite
Help me please, as in Windows 10 standard RichEdit control switch to DirectWrite mode. I need RichEdit to draw text using DirectWrite. I get a pointer to ITextDocument2, but what should I do next? Thank you in advance!
CRichEditCtrl…

Oleg
- 11
- 2
1
vote
1 answer
Trouble sending message to RichEdit control with winapi c#
Im currently working on a solution for an automation of unmanaged, external code, so im having some trouble setting the text to a RichEdit control.
I have tried sending a WM_SETTEXT but it only sets the first letter of the string to the…

Cross
- 19
- 4
1
vote
2 answers
Delphi - RichEdit Zoom with code
If you load some text in the richedit and click left mouse button + move the mouse wheel, the text will zoom in or out, without loosing the text size formatting.
Is there an easy way to implement this functionality (zoom in/out) with some lines of…

Gabriel Angst
- 109
- 1
- 12
1
vote
1 answer
scale font when printing richedit XE5
I have put a RichEdit on a form to represent part of a page. The size of the 'page' is reduced so that the user can see the whole page to gauge the effect of input. When the 'page' is printed, the RichEdit area is expanded and moved on the printer…

Badger
- 33
- 4
1
vote
2 answers
TRichEdit - How to add an empty line with size change?
I have array of strings and i want to add an empty line of lesser size between some of them.
So i have a code:
const _n=#13#10;
//...
r1.Lines.Clear;
r1.SelAttributes.Size:=18;
r1.SelText:='TEST';
r1.SelAttributes.Size:=6;
…

Markus_13
- 328
- 2
- 14
1
vote
0 answers
Bringing back the default context menu in RichEdit when using OLE callback
I have a RichEdit control that uses an implementation of the IRichEditOleCallback interface, so that it can host images and embedded objects.
Part of this interface is the GetContextMenu method. If this method remains unimplemented, the context…

user38329
- 719
- 4
- 17
1
vote
0 answers
RichEdit identify image (WINE/MacOS)
I would like to run an application under the WINE, but there are some issues with richedit. It is necessary to insert a bitmap. A variant with OleCreateStaticFromData->IRichEditOle::InsertObject does not work on the WINE, but it is possible to…

vf.
- 103
- 2
- 6