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
0
votes
1 answer

Filling a RichEdit from an external procedure

I have written a procedure that fills a RichEdit component depending on the input. procedure LoadCPData(ResName: String); begin ResName := AnsiLowercase(ResName) + '_data'; rs := TResourceStream.Create(hInstance, ResName, RT_RCDATA); try …
ple103
  • 2,080
  • 6
  • 35
  • 50
0
votes
1 answer

Styling Ribbon Controls

Could anyone point me to some good documentation on how to theme or style the dev express rich edit ribbon controls.
Mike Croteau
  • 1,062
  • 2
  • 16
  • 43
0
votes
1 answer

Current index of a letter in OnKeyDown

I am trying to get the current index of the letter that typed in during OnKeyDown event. For example, if I have a text in RichEdit Control as "MOVS,21" I would like know the index of "(" when I change the string to "MOV(S,21" in the event…
balan
  • 179
  • 1
  • 5
  • 11
0
votes
1 answer

Font attributes of RichEdit control

I am using old good RichEdit control with last version of VB.NET I want to set font attributes for text which will be typed from now and then. So, RichEdit.Font and RichEdit.SelectedFont are not an options. What should be the correct…
BaruchLi
  • 1,021
  • 2
  • 11
  • 18
0
votes
2 answers

Character spacing in RichEdit control

How can I change the character spacing in RichEdit control? I have tried to use the CHARFORMAT structure, but as MSDN says, the sSpacing is useless in RichEdit control. Moreover, SetTextExtra function is useless in that control's hdc, too. And I…
0
votes
1 answer

XtraRichEdit - Programmatically change input font color

Is it possible to programmatically change current font color in the document? By this I don't mean changing color of specific selection of the document. I need to have all text written by user in blue color. Is it possible to programmatically change…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
-1
votes
1 answer

How do I change the color of the line I enter in a Delphi file, so when I visualize it later different type of lines have different color

I have a form program in Delphi. I've made a log for different actions in the program. I'm pretty sure I need to save it in rtf file with different colors depending on the line I'm entering but don't know how to change the color. I'm also opening…
Ineffable21
  • 153
  • 1
  • 13
-1
votes
4 answers

editor component like RichEdit that supports embedding photos?

can anyone suggest an editor component like RichEdit that supports embedding photos in a delphi app? RichEdit doesn't seem to support this. am not considering embedding MS Word since not everyone would have that. than you for your help!
X-Ray
  • 2,816
  • 1
  • 37
  • 66
-1
votes
1 answer

Using asp.net components into KO foreach blog

I can use html tags into KO foreach blog. For example I can use input and p tags. I know couse of problem is runat="server" attribute. But , How can i do it without this attribute.
-1
votes
1 answer

Drag and drop text from TRichEdit to ListBox without affecting text selection

I have a richedit(richedit1) and a listbox(listbox1), I want to drag the richedit1.text without affecting its text selection. here some code: procedure TForm1.ListBox1DragOver(Sender, Source: TObject; X, Y: Integer;State: TDragState; var Accept:…
-2
votes
1 answer

Getting cyrillic string in richedit with Delphi

I have a formatted text on a wordpad file(rtf). I'm trying to open it on a richedit on a delphi form. The problem is that the string is in cyrillic(Bulgarian) and it's saved with weird hieroglyphs or whatever those are "Âëåçå ïîòðåáèòåë". Is there a…
Ineffable21
  • 153
  • 1
  • 13
-2
votes
1 answer

RichEdit Control EM_POSFROMCHAR Access Violation

I don't get it. I sent: SendMessage(hrichedit, EM_POSFROMCHAR, (WPARAM)pos, 0); and pos=0x69 The documentation says: wParam Rich Edit 1.0 and 3.0: A pointer to a POINTL structure that receives the client area coordinates of the character. The…
user3161924
  • 1,849
  • 18
  • 33
-2
votes
1 answer

RichEdit Text Font Changes Strangely

I am using Delphi XE3. I need to set some parts of a long statement to bold and red. Since TLabel does not support such a feature, while merge several TLabels is rather inconvenient, and TJvHTLabel does not support bold, I decide to implement that…
alancc
  • 487
  • 2
  • 24
  • 68
-2
votes
1 answer

How to insert text into my Rich Edit Control in VS2010?

I've already gone to this question: How to insert text to rich edit control in Win32 while preserving any previous formatting And I tried to do what he did, but I got met with the error that my SendMessage didn't take the same number of…
Aj Godinez
  • 115
  • 1
  • 11
-2
votes
1 answer

C++ Builder Syntax Highlighter

I have searched on the Internet how to do this, but I can't find how. I need to colour specific words in RichEdit, such as the words false and true.
whispereq
  • 65
  • 1
  • 1
  • 7
1 2 3
18
19