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

Keeping the caret at the end of text in a rich edit

I am writing an editor in Delphi (2009) using a TRichEdit component. The editor is append-only, in the sense that the caret must be at the end at all times, while maintaining the ability to copy using the mouse from elsewhere in the component. The…
Muhammad Alkarouri
  • 23,884
  • 19
  • 66
  • 101
1
vote
1 answer

spellcheck preloaded text of richEditControl

I'm using the devex richEditControl to allow my user to type and format the text etc in a winforms control. I set the spell checker to the AsYouType mode which is working correctly as I type in my richEditControl. As I had in mind, the spell…
Mike Turner
  • 471
  • 1
  • 7
  • 22
1
vote
0 answers

how can i clear the background color of TQRRichEdit

When i do as follows: QRRichEdit1->ParentRichEdit->Color = clWhite no effect. How can clear the background color of TQRRichEdit?
SenKe
  • 346
  • 3
  • 10
1
vote
1 answer

Hiding caret in RichEdit winapi

I would like to hide a caret from a RichEdit(50W) with ES_READONLY style specified. It's pretty confusing for the user, when the caret is blinking and the user can't type. I tried to hide the caret using HideCaret() function, however it doesn't work…
ProXicT
  • 1,903
  • 3
  • 22
  • 46
1
vote
3 answers

delphi 7 richedit and romanian language

I'm trying to write some Romanian text into a RichEdit component (Delphi 7) , and even i set the Font Property - Charset to "EASTEUROPE_CHARSET" it doesn't work. What i want to accomplish is to paste some text (in romanian) in a RichEdit, load into…
RBA
  • 12,337
  • 16
  • 79
  • 126
1
vote
1 answer

What is a "story" in the Text Object Model?

This documentation describes RichEdit and ITextDocument, which are part of MFC. RichEdit uses TOM, or text object model. The documentation makes repeated reference to "stories": The GetStoryCount property-get method retrieves the count of…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
1
vote
0 answers

How to change URL color in TJvRichEdit?

In TJvRichEdit Version 3.48 (from JVCL) there is an AutoURLDetect property: The URLs have a dark blue color which makes them difficult to read on a dark background: I use TJvRichEdit in a VCL Form application in Delphi XE8. So how can I change the…
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
vote
1 answer

Want to show colored box around Richedit control in MFC at runtime

I have an mfc application. I have some richedit controls on the dialog. I want to show a yellow colored filled frame around the controls. What is the way to do this? I tried to create one more rich edit ctrl around the existing richedit ctrl and…
SGP
  • 83
  • 10
1
vote
1 answer

How to "adjust" RichEdit control to accept fractions?

I have read the official docs but still was not able to figure this out. Since English is not my native, I have a hard time constructing effective Google query. I am still trying though... I would like to enter fractions into RichEdit control,…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
1
vote
1 answer

TRichEdit finding protected text

I am working on a TRichEdit (Delphi XE2). Is there any way i can check whether the richedit textbox contains protected text or not? Also the starting position of that protected text without iterating through the complete text. Currently i am using…
suri1
  • 21
  • 1
1
vote
4 answers

Delphi: Center Specific Line in TRichEdit by Scrolling

I have a Delphi 2007 TRichEdit with several lines in it. I want to scroll the richedit vertically such that a specific line number if approximately centered in the visible/display area of the richedit. For example, I want to write the code for…
Anagoge
  • 933
  • 1
  • 14
  • 23
1
vote
2 answers

RichEdit, winapi - paragraph aligment

I would like to have a line aligned in such way, that some first words are aligned left and some last words are aligned right, but all are in the same line: | text 1 text2 | | Lorem ipsum dolor sit amet | Is…
bartek
  • 505
  • 1
  • 4
  • 19
1
vote
1 answer

RichEdit's EM_AUTOURLDETECT message not always sent

To describe this issue, the best would that you would test my application with following usecase: Application: http://ubuntuone.com/p/nF/ Open application; Click on the ">" captioned button; Click on same button again; Click on the same button…
HX_unbanned
  • 583
  • 1
  • 15
  • 51
1
vote
1 answer

syntax highlight richedit control not working poperly

I am trying to implement a syntax highlight editor with a richedit, it has works well with the current selected line, but I may be missing something. The CRichEdit is my own wrapper implementation of the richedit controller, the problem seems that…
Jman
  • 103
  • 9
1
vote
1 answer

Is CFE_LINK stored in RTF RichEdit 3.0?

I am using MS TextServices to implement windowless rich text editing and setting CFE_LINK to create hyperlinks. This all works but when I save the text to my internal buffer for writing to a file the CFE_LINK effect isn't saved. I have (tried to)…