Questions tagged [richedit]

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.

285 questions
1
vote
2 answers

how to insert an Image to Richedit( Windows api)

How Can I insert an image to a RichEdit? I am using the Msftedit.dll and Richedit.h. I google it but cannot find a good way to solve it. Can you help me ?
pan.mingzhi
  • 83
  • 1
  • 1
  • 5
1
vote
2 answers

Scrolling issues with TRichEdit in Delphi

I am adding lines to a TRichEdit how do I keep focus on the line that has just been added? For Idx := 1 to 1000 do RichEdit.Lines.add(IntToStr(Idx)); EDIT I just what the bottom line of the richedit to show what was just added and all the other…
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139
1
vote
2 answers

how to detect if ctrl key is pressed when child window ie. richedit is in focus?

I noticed that RichEdit does not send messages to parent window when CTRL key is pressed when the control is in focus. When parent window is active then all goes ok. But when cursor is in RichEdit only mouse 0x20 WM_SETCURSOR messages go ok. When…
rsk82
  • 28,217
  • 50
  • 150
  • 240
1
vote
0 answers

VCL RichEdit componet which will load table background

I am using C++ Builder XE2. I wish to use a RTF file to load a template into a rich edit file so I can change marked strings eg $DATE$. I have tried both TRichEdit and TJvRichEdit and can do the string replace no problem. TJvRichEdit also load bmp…
1
vote
1 answer

How to suppress angle brackets around hyperlinks in RichEdit control

I'm using CRichEditCtrl::StreamIn to initialize the contents of a RichEdit20W control from an RTF file in a resource at runtime. The RTF text from the file: ... blah {\field{\*\fldinst{HYPERLINK "www.foo.com/bar"}}{\fldrslt{\ul\cf1…
Scott Smith
  • 3,900
  • 2
  • 31
  • 63
0
votes
1 answer

Rich edit control formatting doesn't work when I compile in debug mode

I have a simple Win32 API dialog-based application that I've written which contains a rich edit control. The control displays the contents of ANSI-based text files and does some very basic syntax highlighting. I am using Visual C++ 2010 Express to…
user1114264
0
votes
1 answer

Richedit 2.0 control ignores WParam for WM_PAINT messages?

I've read a lot of issues with trying to double-buffer a richedit control, but have not seen any direct answers to this specific question (would be really great to have a quote/link where Microsoft has an official statement). Here is some code…
eselk
  • 6,764
  • 7
  • 60
  • 93
0
votes
0 answers

Interpret / Render the html string in Excel cell

I'm trying to interpret the string containing HTML tags and apply the stylings and add it in excel cell using DevExpress spreadsheet to generate the excel file. any help will be appreciated. I tried using CellRangeObj.SetRichText( ) but is showing…
0
votes
2 answers

Delphi select a paragraph in richedit

How to select a paragraph on several lines. Paragraphs are limited by number and not by #10 + *#13? Selection fear to be by clicking or by mouse flying over the paragraph.
0
votes
0 answers

Rich text box replaces default Monospaced font for Box-drawing characters with Variable-width font

I have a Windows rich text box control (RichTextBox) on my form. The box has Consolas monospaced font set. For most contents the box indeed renders it with the selected font. But when I load/set contents with Box-drawing characters, the box renders…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
0
votes
1 answer

How to save a screenshot of a Form containing TRichEdit to a file?

I use this code to save a screenshot of a Form to a bitmap file: var Bmp : Graphics.TBitmap; begin Bmp := GetFormImage; try Bmp.SaveToFile( _DestFilePath ); finally Bmp.Free; end; end; However, it doesn't seem to work well when a…
Max Smith
  • 395
  • 1
  • 2
  • 13
0
votes
1 answer

My windows application is showing black and white emojis in Text Edit Box?

I have created a Text Edit Box using Microsoft RichEdit Controls. But I am having black and white Emojis. Using Windows msftedit.dll library and RichEdit50W windows class. Windows 11 I have tried installing Segoe Font and Emojis Please help me in…
Ajay.kundu
  • 195
  • 2
  • 10
0
votes
0 answers

Delphi Richedit Print

Please Help me. I have this Delphi code.(Delphi 11.1) ShowMessage shows me 62. On the printed paper I see this: XT is the band founded by Kristofer Steen, David Sandström, from all lines in the RichEdit. TEXT is the band founded by Kristofer…
Alekperov
  • 1
  • 1
  • 1
  • 5
0
votes
1 answer

pTextServices->TxSendMessage( EM_STREAMIN, ( WPARAM ) SF_RTF, ( LPARAM ) &editStream, &lResult ) does not call EditStreamInCallback

When calling: pTextServices->TxSendMessage( EM_STREAMIN, ( WPARAM ) SF_RTF, ( LPARAM ) &editStream, &lResult ) editSteam.EditStreamInCallback is not being called, but if SF_TEXT is used instead of SF_RTF, then editSteam.EditStreamInCallback gets…
0
votes
1 answer

TRichEdit doesn't allow typing with some fonts

I noticed that TRichEdit is acting strange. It works perfectly fine when I use usual fonts such as Arial, Verdana, Times New Roman. However, if I change to some other font: RichEdit1.Font.Name:='Viner Hand ITC'; // and many other fonts RichEdit…
Xel Naga
  • 826
  • 11
  • 28