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
NSIS: How to change RichEdit background color
I'm using Nsis for install my project. I need to change richEdit background color. I try SetCtlColors method but it doesn't make any changes. Here is my code:
; handle variables
Var hCtl_FirstDialog
Var hCtl_FirstDialog_RichText1
Var…

user2455111
- 234
- 1
- 9
0
votes
1 answer
FastReport3.5 RichEdit report preview freezes when text uses a Chinese font
I use FastReport3.5 in my Delphi7 program to show reports.
Sometime when I preview my report the program freezes.
When I change the RichEdit font, I can preview the report normally.
I thought the RichEdit component didn't support Chinese very well,…

suplee
- 1
- 3
0
votes
1 answer
Crash after the second RichEdit initialization in x64
According to Using Rich Edit Controls I use RichEdit in such way:
MyControl::OnCreate()
{
handle = LoadLibrary(_T("Riched20.dll"));
}
MyControl::OnDestroy()
{
FreeLibrary(handle);
}
It works fine for win32 but recently I’ve built x64…

Eugene
- 3,335
- 3
- 36
- 44
0
votes
1 answer
Remove highlight in RichEdit
I am using the following code to highlight a selection of text in a RichEdit.
procedure TAFormatMain.BtHighLightTextClick(Sender: TObject);
const
AColor = clYellow;
var
Format: CHARFORMAT2;
begin
FillChar(Format, SizeOf(Format), 0);
with…

Rudi
- 203
- 2
- 12
0
votes
2 answers
How do I setup a callback mechanism for RichEdit in win32
In win32, how do I setup a callback mechanism for RichEdit I have not created myself?
PART 1
I'm reading from a textedit field in another application's GUI. This works just fine now, except after the first read I'd like to fetch only new or modified…

Tuminoid
- 9,445
- 7
- 36
- 51
0
votes
0 answers
How to change font name on selection in RichEdit control
My goal is to let users set specific font on selection in the RichEdit control.
So I do it as such in code:
#define SIZEOF(f) (sizeof(f)/sizeof(f[0]))
CString m_strName = L"Script";
CHARFORMAT2 cf3;
memset(&cf3, 0, sizeof(cf3));
cf3.cbSize =…

c00000fd
- 20,994
- 29
- 177
- 400
0
votes
0 answers
Understanding byte structure of rich text blob in a Paradox database
I'm trying to extract data from a dump of a Paradox database. It contains two fields with rich text stored as a binary blob that I'm having troubles decoding. In the middle of the blob there is the plain text, but it is surrounded by two blocks of…

elpres
- 416
- 5
- 12
0
votes
1 answer
How to get notification on when richedit control has maximum text length
I want to increment the height of my edit control when size of string in richedit control gets maximum means to its width. I have used EN_MaxText but it is not working in RichEdit control.

Vivek
- 21
- 1
0
votes
2 answers
How to align RichEdit paste object position in Visual Basic 6?
We have a RichEdit control into which we allow the user to insert an Office MathML equation object.
Basically the logic goes like this: the user click on insert math equation, we allow them to use an external MathML editor, then we will paste an…

melaos
- 8,386
- 4
- 56
- 93
0
votes
2 answers
Is there a way to test if a control is Edit or RichEdit?
Basically, I have written a program in C# that grabs text and the current caret position from any window handle using user32.dll. After manipulating the text, the program sets the text of the control to the new string and also resets the caret…

Joshua
- 31
- 5
0
votes
3 answers
C# Receiving pop3 email with inline images and cid value
I am working to receive pop3 emails via OpenPop component. I am receiving emails from the server and saving to the sql database. At this point, there is no problem.
But today, I realized, some images are not showing on the richtextbox.
This…

Aydin
- 23
- 6
0
votes
1 answer
RichEdit's ITextRange: Determine if a user's cursor is in a word?
I'm using ITextRange from a RichEdit control. I want to determine if a user's cursor is touching a word.
The problem is that calling iTextRange.expand(tomWord) will include tailing spaces:
Brackets indicate the range:
Before:
weas[]el …

Nick Heiner
- 119,074
- 188
- 476
- 699
0
votes
1 answer
Difficulty with MFC template project in VS2010
I'm using Visual Studio 2010 to experiment with MFC.
I have created a template MFC project by following the wizard. I chose a dialog based app, and unchecked other options like ActiveX controls.
After making no code changes, I hit F5, and the app…

Nick Heiner
- 119,074
- 188
- 476
- 699
0
votes
1 answer
What values to use for RIchEdit Ctrl?
ALL,
From MSDN
typedef struct _charformat2 {
UINT cbSize;
DWORD dwMask;
DWORD dwEffects;
LONG yHeight;
LONG yOffset;
COLORREF crTextColor;
BYTE bCharSet;
BYTE bPitchAndFamily;
TCHAR …

Igor
- 5,620
- 11
- 51
- 103
0
votes
1 answer
How to continuously select content in TWO RichEdit controls?
I'm currently working on project which will have two RichEdit controls one close to the other: let's say RichEdit1 is on left and RichEdit2 is on the right.
The user scenario I want to enable in the project is:
User mouse LButton down at somewhere…

NonStatic
- 951
- 1
- 8
- 27