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

Implementing a rich text editor in Android?

I am wondering if there are any good options to implement a rich text editor in Android. Please note I am talking about a rich text editor that can be used in an Android application, not the one embedded in a web page using HTML and Javascript. My…
Tony Blues
  • 879
  • 1
  • 9
  • 8
15
votes
2 answers

RichEdit 2.0's usage of single CR character as linebreak throws off SelStart calculations (Delphi XE2)

When transitioning from Delphi 2006 to Delphi XE2, one of the things that we learned is that RichEdit 2.0 replaces internally CRLF pairs with a single CR character. This has the unfortunate effect of throwing off all character index calculations…
user1127813
  • 299
  • 3
  • 8
15
votes
3 answers

Are there any good TDD tools or resources for VB6?

Yea i know i'm way behind times but what i've got here is a antique VB6 editor app which i believe that no one will be upgrading to .NET soon. It uses a couple of third party DLLs tools and as it's still using the good old RichEdit control i…
melaos
  • 8,386
  • 4
  • 56
  • 93
13
votes
3 answers

Colorful text in the same line in TRichEdit

How to write text in the same line but with different color? (I use richedit). procedure TForm1.btnEClick(sender: TObject); begin m0.SelAttributes.Color := clBlue; m0.SelAttributes.Style := [fsBold]; m0.lines.add('This is blue and it is…
Bianca
  • 973
  • 2
  • 14
  • 33
12
votes
9 answers

Iterate Over Struct; Easily Display Struct Fields And Values In a RichEdit Box

Is there an easier way to display the struct fields and their corresponding values in RichEdit control? This is what I am doing now: AnsiString s; s = IntToStr(wfc.fontColor); RichEdit1->Lines->Append(s); etc... Is there an easier way than having…
user195488
10
votes
3 answers

How to autoscroll to the end of RichEdit?

I never needed to use the TRichEdit before, always used TMemo. I'd like RichEdit autoscrolling to the end when I add text like TMemo. See how it looks after you add some data: As you can see, the scroll bar remains at the top, but I'd like it…
Daniel Grillo
  • 2,368
  • 4
  • 37
  • 62
9
votes
1 answer

How to eliminate the MessageBeep from the RICHEDIT control?

The RichEdit control has this very annoying feature. It beeps every time the user tries to move the cursor past its "end point". For instance, you can test it with the WordPad that also implements RICHEDIT. Open it up, type in some text, then hit…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
9
votes
2 answers

Loading RTF text from database into TRichEdit

I am currently in the process of migrating our software solution from Delphi 7 to 2010. Mostly the changes have been simple and there are only a small amount of hurdles left to go. On a form we use a TRichEdit which displayed rtf text grabbed from a…
Simon Hartcher
  • 3,400
  • 3
  • 30
  • 34
9
votes
2 answers

Using Tables in RichEdit in Delphi

I am attempting to use Tables in a TRichEdit control in Delphi XE2 Starter Edition. (In other words, I don’t have the source code for XE2 – but I do have it for TurboDelphi). I understand that the default RichEdit control does not use a version of…
Jeff
  • 121
  • 1
  • 4
9
votes
3 answers

Unicode RTF text in RichEdit

I'm having trouble getting a RichEdit control to display unicode RTF text. My application is Unicode, so all strings are wchar_t strings. If I create the control as "RichEdit20A" I can use e.g. SetWindowText, and the text is displayed with the…
NPVN
9
votes
3 answers

How to completely remove the selection bar from a TRichEdit control?

On the left side of every line in a TRichEdit control there's an invisible space where the cursor changes to a right-up arrow and when you click there the entire line is selected. It's easy to see it when the TRichEdit's text alignment is Center or…
jedivader
  • 828
  • 10
  • 23
8
votes
2 answers

Scrolling RichEdit without it having focus

I need to scroll a RichEdit to the very end after a line is added. I have this RichEdit in a separate form, that I don't want to get focus at all. I tried often suggested…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
8
votes
3 answers

How to Convert Simple RichText to HTML tags in Delphi?

You may say that there are lots of discussions about this in stackOverflow, but most of them are more complicated than what I need and mostly for other languages. I have a MySQL remote database in which I have a "Help" table with the code for…
NaN
  • 8,596
  • 20
  • 79
  • 153
7
votes
2 answers

Using newer RichEdit versions?

I've tried using RichTextBox on C#, and found it too slow to work with for text thousands of lines of long. After some googling, I found this is because .net by default uses RichEdit 2.0, and a solution is to use RichEdit 5.0 instead. C# RichEditBox…
dare0021
  • 583
  • 6
  • 13
7
votes
1 answer

Are there any alternatives to using contenteditable or a textarea?

I am working on an online rich-text editor, similar to the WordPress page creator, or the Stack Overflow post creator. It has been pointed out that there are two distinct types of online rich-text editors: WYSIWYG editors, and HTML editors I'm…
1
2 3
18 19