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
3
votes
3 answers

Rich Edit Control: Prevent Rich Formatting?

How do you prevent the user from changing anything other than the text in a Win32 Rich Edit control? (i.e. They shouldn't be able to change the formatting of any text, add graphics, etc.; if they copy-paste new text, only the text should be kept,…
user541686
  • 205,094
  • 128
  • 528
  • 886
3
votes
1 answer

Disappearing WS_STYLECHANGING/WS_STYLECHANGED messages in CRichEditCtrl derived & subclassed class, or a bug in Spy++?

I'm really puzzled over this. I have a CRichEditCtrl derived class that is also subclassed in my CDialog as a child control. (The window class for the Win32 rich-edit window itself is a newer RICHEDIT50W.) I'm trying to investigate messages that are…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
3
votes
1 answer

How to use richedit control _RICHEDIT_VER over 2.1 in MFC

I'd like to use Rich edit control's underline color in MFC but, in afxwin.h, _RICHEDIT_VER define 0x210. like this, #define _RICHEDIT_VER 0x0210 I'm loading 'msftedit.dll'(8.1 Version) and Windows10 SDK (10.0.16299.0) but, bUnderlineColor is coded…
JaeHyeok Kim
  • 103
  • 5
3
votes
1 answer

How to get text extent of RichEdit in Delphi

Does anyone know how to get the width and height of text in a TRichEdit control, in the same way that you would use TextWidth and TextHeight on a TCanvas? The reason I need to know this doing this is I have a RichEdit on a non-visible form that I…
Alan Clark
  • 2,017
  • 21
  • 28
3
votes
2 answers

How to disable Drag/drop TRichEdit or TRzRichEdit

How to block the drag and drop in TRichEdit? delphi code I work with Rich edit and having difficulties on blocking the drag and drop feature specially dragging text from outside the form let say comming from IE to my RichEdit.
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
3
votes
1 answer

How to avoid Cross Site Scripting (XSS) attacks while using JSF and RichEditor

I am using Rich Editor for user input text box on an all-JSF platform. I am trying to avoid XSS attacks on this text field. The requirement is that the user can enter any character in the text box, the rich editor should display non-encoded values…
ripher
  • 103
  • 2
  • 9
3
votes
3 answers

change text color in win32 richedit

I want to show different text colors in win32 rich edit control, here' my test #include #include #include HWND console; // util function for rich edit namespace rich_edit { CHARFORMAT get_char_fmt(HWND…
aj3423
  • 2,003
  • 3
  • 32
  • 70
3
votes
3 answers

Delphi: How to use TJvRichEdit to load or save text and images (not just .bmp) to file or firebird blob field?

Regarding TJvRichEdit and Delphi... How? Load/Save rtf (including text and images - not only .bmp) to/from a file? Read/Write rtf (including text and images - not only .bmp) to/from Firebird blob field? Automatically convert screendump pasted from…
Sam
  • 2,663
  • 10
  • 41
  • 60
3
votes
2 answers

Free Component which can show richtext with pictures Delphi

I need a free component like RichEdit, but which can also show pictures inside. I am using Delphi 7. Unfortunately RichEdit cannot show pictures, and few components which can are not free.
Tofig Hasanov
  • 3,303
  • 10
  • 51
  • 81
3
votes
2 answers

mark all the instances of a word (Delphi, RichText)

OK, this is a problem that's been nagging and I can't see to find a definitive answer. How do you find and mark all instances of a word? What I mean is, I search for a word (say: Person). If the word exists the I mark (using red or whatever color)…
wonderer
  • 3,487
  • 11
  • 49
  • 59
2
votes
3 answers

Rich-Text Editing of Word Documents on the Web via ASP.NET

My users upload Word 2007 documents to our site and I'd like to load them into a rich edit control of some kind so the users can make modifications/ comment, etc. What mechanisms are available to: load the Word document via ASP.NET,…
Caveatrob
  • 12,667
  • 32
  • 107
  • 187
2
votes
1 answer

How do I make the text in an Edit Control and an Rich Control so I cant select it?

I have Edit Controls and Rich Edit controls in my application that are read-only. But on top of that, I want to make it so I can't select the text or even do anything with it, only display. I did not make it static because when I first made my…
Artie
  • 493
  • 1
  • 7
  • 18
2
votes
1 answer

DBRichEdit RTF encoding lost transitioning application from BDE to DBX

My team is converting a BDE application to DBX using D2007. A TTable has been replaced with a TSQLDataSet/TDataSetProvider/TClientDataSet combination. A TStringField has been used to access the RTF in the Oracle varchar field via a TDBRichedit…
Stewart
  • 149
  • 1
  • 11
2
votes
1 answer

How to count characters in RichEdit without two characters that every new line gives?

I have problem with counting characters in richedit (Delphi XE). For every new line as a result i get two characters more but in text they not exists. Example: Here are 15 characters, but richedit gives 17 because of new line. line zero line…
Srdjan
  • 23
  • 3
2
votes
0 answers

RichEdit controls hangs in CTxtEdit::TxSendMessage

In my app I use a RichEdit control (RICHED20.DLL) with syntax highlighting implemented on top of it. Quite a lot of code was necessary to make this work correctly. Internally, everything is stored as RTF and reformatted on the fly. This code has…
Andreas
  • 9,245
  • 9
  • 49
  • 97