richedit

Rich Edit Control in raw Win32

Is the documentation for Rich Edit Controls really as bad (wrong?) as it seems to be? Right now I'm manually calling LoadLibrary("riched20.dll") in order to get a Rich Edit Control to show up. The documentation for Rich Edit poorly demonstrates this in the first code sample for using Rich Edit controls. It talks about calling InitComm...

How can I add an HyperLink in TRichEdit using Delphi

How can I add an HyperLink in a TRichEdit (using Delphi). I need to have something like: "This is my text, click here to do something." ...

How do I add rich text editing support to a web site?

I need some basic CMS functionality with rich text editing. On stack overflow there is a regular textarea edit control, with support for Markdown style syntax formatting. That would be beyond my users, so I want something like a rich edit control that you can type into on the web site. I know it is possible, as loads of sites do it, but ...

How to align RichEdit paste object position in Visual Basic 6?

We have a RichEdit control into which we allow the user to insert an Office MathML equation object. Basically the logic goes like this: the user click on insert math equation, we allow them to use an external MathML editor, then we will paste an image to represent the equation into the RichEdit control: ' Paste the picture into the Ric...

How do I setup a callback mechanism for RichEdit in win32

In win32, how do I setup a callback mechanism for RichEdit I have not created myself? PART 1 I'm reading from a textedit field in another application's GUI. This works just fine now, except after the first read I'd like to fetch only new or modified lines. In GTK+ or Qt I'd just install a callback on some signal the field edits when it...

Are there any good TDD tools or resources for VB6?

Hi Guys, 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 basically can raise my own Bug farm with just this tool alone. So enough is enough and...

How to autodetect urls in RichEdit 2.0?

When we have a RichEdit control and send it an EM_AUTOURLDETECT message with WPARAM set to TRUE, it nicely hightlights the detected URLs and sends the EN_LINK notifications. But it does this only for text that is entered into the control. I haven't found the way to do it for text that's loaded into the control with SetWindowText or EM_ST...

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! ...

Why does a Rich Edit control ignore character formatting on trailing whitespace?

I have a Unicode rich edit control v4 (based on MSFTEDIT.DLL). I'm using WTL, which I don't believe is interfering. The test OS is Vista x64. The application is 32-bit Unicode. All text is added programatically, and the control is read only. The user gets to pick the fonts used for inserted text, and those fonts can vary across the text...

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, and parse/format/display the document in a rich editing control? Also, what kinds of rich editing con...

Which is the best jQuery rich editor?

Which is the best jQuery rich editor? Any recommendation? ...

Change highlight color of selected text in RichEdit

How do I change the color of selected text in a RichEdit control, while the text is being selected? SetSysColor() can do it, but that changes the Highlight-color globally. Setting a CHARFORMAT2 with SCF_SELECTION, and sending a EM_SETCHARFORMAT does change the font and background color. But is only visible once you deselect the same ran...

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) all instances of that word in the richedit. If I press Esc then it gets deselected. Any i...

[Delphi] Chinese Symbols When Loading Text

Hello, I am loading text from text file to richedit but it displays weird Chinese symbols instead, what am I doing wrong? ms := TMemoryStream.Create; ms.LoadFromFile('C:\aw.txt'); ms.Seek(0, soFromEnd); zChar:=#0; ms.Write(zChar, 1); ms.Seek(0, soFromBeginning); RichEdit1.SetSelTextBuf(ms.Memory); ms.free; ...

Scrolling issues with TRichEdit in Delphi

Hi I am adding lines to a TRichEdit how do I keep focus on the line that has just been added? For Idx := 1 to 1000 do RichEdit.Lines.add(IntToStr(Idx)); EDIT I just what the bottom line of the richedit to show what was just added and all the other lines to scroll up ...

RichEdit Controls / Embedded Objects

I'm trying to replicate the recipient text control from Outlook which converts the text typed into objects that contain the formats CF_TEXT, CF_UNICODETEXT and MsOffice8Recipent. I've created an IDataObject with the CF_TEXT format but I can't work out how to get it into the RichEdit control as an object. There is a sample on MSDN for ins...

Sharepoint Rich Content Editor munging HTML added from custom toolbar button

Summary: What I'm trying to ask - are we going about this the completely wrong way, or, is there a way to stop Sharepoint, or its rich editor, from munging the HTML which gets added? I've been 'dropped' into a project revolving around Sharepoint 2007 (trust me, I'm not entirely pleased about it), and one of the things that is sought aft...

How to change underlining color in a Rich Edit control (Win32/C)

I’m looking for a way to make red squiggly underlining in a Rich Edit control (I’m using version 4.1 with Msftedit.dll). I’m able to produce squiggly underlining with this code : CHARFORMAT2 format; format.cbSize = sizeof(format); format.dwMask = CFM_UNDERLINETYPE; format.bUnderlineType = CFU_UNDERLINEWAVE; SendMessage(hWndEdit,EM_SETCH...

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 proper formatting. If I create the control as "RichEdit20W" then using SetWindowText shows the ...

Make child window transparent to user input

Is there a way to make input "pass through" a child window and reach its parent? My problem is this: I'm making custom control with a label that can be formatted. So, rather than trying to re-invent the wheel, I added a RichTextEdit control and applied the WS_EX_TRANSPARENT extended window style. It looks like what I want, but there are ...