Questions tagged [trichedit]

TRichEdit is a VCL control that wraps the Windows Rich Edit common control. It is defined in the ComCtrls.pas unit.

TRichEdit is a VCL control that wraps the Windows Rich Edit common control. It is defined in the ComCtrls.pas unit.

68 questions
2
votes
0 answers

Mixed Western and Asian characters in TRichEdit

(Delphi XE4 / Win 7) The TRichEdit component behaves strangely when both Western and Asian characters are to be displayed. Demo program (form, listbox, richedit with default setting from Object Inspector; Asian chars copied from a japanese…
uliF
  • 31
  • 2
2
votes
2 answers

Loading RTF file having Table in TRichEdit without Table borders

I have a RTF file that I am loading into a TRichEdit control. Only problem that I am facing is, RTF file has Tables in it, loading the same shows table borders. But when I load the same RTF in MS Word it doesn't show any borders(Client want the same…
Shashi Jaiswal
  • 71
  • 1
  • 3
  • 10
2
votes
1 answer

TRichEdit color problems

ans:= RichEdit1.Text for i:=1 to Length(ans) do begin RichEdit1.SelStart := i-1; RichEdit1.SelLength:= 1; if ans[i] = correct[i] then RichEdit1.SelAttributes.Color := clRed else RichEdit1.SelAttributes.Color := clBlue; …
Dian
  • 1,187
  • 3
  • 18
  • 35
2
votes
1 answer

Delphi - Keep highlighted selection in RichEdit when focus is lost

I have an TRichEdit. When I select some text and click on another element, the selection of the selected text disappears. Is there a way to keep this selection, also when the TRichEdit has los it's focus? Thanks!
gonzales
  • 401
  • 1
  • 9
  • 20
2
votes
1 answer

How to prevent auto-scrolling of a focused TRichEdit when adding new lines?

I'm having a TRichEdit control into which I'm continuously adding lines. The problem is that when the control is focused, it automatically scrolls to the end whenever a line is added. How can I stop the scrollbar to move to the end when lines are…
JO SeongGng
  • 567
  • 3
  • 18
2
votes
1 answer

Delphi RichEdit, get y-pixel start of an arbitrary line

I have a richedit containing lines using different fonts, styles, languages etc. I am drawing in a gutter. I would like to start my drawing at the same y pixel position as the corresponding line.
Tom
  • 3,587
  • 9
  • 69
  • 124
2
votes
2 answers

Copy formated text from a cell in a Table in Word document to TRichEdit

I use OLE Automation to work with Word document. I can get the content of the cell using Table.Cell(rowIndex, colIndex).Range.FormattedText it returns OleVariant. I'm not sure if I'm using right property and have no idea how to paste this text in…
Alexander
  • 153
  • 1
  • 2
  • 8
2
votes
2 answers

Delphi 7 TRichTextEdit Text in a box not displaying correctly

Using delphi 7 TRichEdit component, RTF data is being imported from a msword document through copy and paste, but if data is contained in a box, it is not displaying correctly i.e. Please assist
KE50
  • 546
  • 1
  • 7
  • 17
1
vote
1 answer

How can I force a TRichedit control to fire up the onRequestResize in Delphi 11.3?

Somewhere in my app I have the statement RE.Lines.LoadFromStream(st) where RE is a TRichEdit control. I have also set the event onResizeRequest that fires up on execution of the above statement but not every time although the event remains…
JimPapas
  • 715
  • 2
  • 12
  • 27
1
vote
0 answers

TRichEdit: Different bullets according to how much the paragraph is indented?

In a 32-bit VCL Application in Windows 10 in Delphi 11 Alexandria, I use the new TRichEdit control. I have the following code to INDENT the current paragraph: procedure TformMain.menuitemIndentDecreaseClick(Sender: TObject); begin …
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
vote
2 answers

Upgrading from D2005 to D2010 : TRichEdit

The following code works well on D2005 : MyRichEdit1.Text := TMemoField(Query1.FieldByName('Msg')).asString; But in D2010, this code outputs the text in plain text and not on rtf. To solve the problem I'm using the following…
Sam
  • 53
  • 3
1
vote
2 answers

How to assign richly formatted text to Delphi TRichEdit or TcxRichEdit during design time (possibly, using Lines attribute)?

I just want to assign immutable, richly formatted text to RichEdit (or DevExpress cxRichEdit, which, obviously is inherited from VCL RichEdit) during design time. I know how to do a lot of formatting during run-time using Selection of text and…
TomR
  • 2,696
  • 6
  • 34
  • 87
1
vote
0 answers

How to include the last word of hyperlink text in TRichEdit in the blue, underline format of the rest?

I'm using a TRichEdit to edit text. I then use TJvRichEditToHtml to convert the text to HTML which then gets sent as the body of an email via Mailgun. I'd like to include hyperlinks in the text that gets emailed. Following this SO post, and several…
user2834566
  • 775
  • 9
  • 22
1
vote
1 answer

How to loop through each visible char of a TRichEdit text?

In Delphi 10.3.3, which is the most simple and fastest and most efficient way to loop through each visible Char (i.e. excluding non-printable characters such as e.g. #13) of a (multiline) TRichEdit text? I then need to get and set the color of each…
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
vote
1 answer

Is it possible to avoid a TRichEdit losing its focus when clicking a button (e.g. Bold)?

Using delphi and rich edit, I need to replicate something along the lines of this very editor I'm writing in, when you select a text and press on the Bold button, the text remains selected instead of unselecting and losing focus. How can I achieve…
Rosenberg
  • 2,424
  • 5
  • 33
  • 56