Re: How to construct the RTF format to display text like a hyperlink in RichEdit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Anonymous (nospam_at_noISP.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 05:11:09 GMT

kaiduan wrote:
> I am going to write a text into RichEdit to let it to be displayed like a hyperlink ( can send EN_LINK notification), but the text itself is not a http URL.
> One way to do that is to format the text into RTF format. But the whole RTF specification is too lengthy. Can anyone tell me the format just for this requirement?

You can use a word processor (e g, MS Word) to create the text, formatted as you like, and
to output an .RTF file. That will have the RTF formatting commands in it. You can see them
by using a word processor (e g, MS Word) to open the .RTF file as text.

The RTF file can be streamed into your rich edit control, or you can extract just the
formatting commands you need and write them into your pgm.

sherNOwoodSPAM@computer.org (remove caps to get e-mail)



Relevant Pages

  • Re: Replacement for MS Office
    ... graphics in a RTF file opened on any other platform than OS X, and RTFD is a Mac only format. ... and it's not my intention to make assertions as to whether Bean or one of the OpenOffice implementations are "better" or more to be preferred. ... As to the RTFD format, what it seems to do is to wrap into an openable folder an RTF file for the text of the document in question, plus separate files for all the graphics elements you add to the document, in such a way that Bean can display the full document on screen with all the graphics elements properly positioned and formatted in the document. ...
    (comp.sys.mac.apps)
  • Re: M$ Word [OT]
    ... RTF file. ... there, save it using OO.o native format, then save it again using .DOC format. ... uncheck and resave the document. ...
    (rec.games.bridge)
  • Re: Where does the .rtf default extension come from?
    ... The .rtf file extension was created by Microsoft such that a file generated ... by a word processor program could be saved and used by other word processor ... >I find that both WordPad and Word are defaulting to .rtf format. ...
    (microsoft.public.office.misc)
  • Uneditable document with no obvious locking
    ... format, and when I opened it I was unable to cut/copy/paste, or for that ... However, when I re-opened the RTF file in Word, I was still unable to access ... this is Microsoft's idea of "protection", it obviously is not very good if ... one can circumvent it by saving the file in another format and opening that ...
    (microsoft.public.mac.office.word)
  • Re: Report to PDF without PDF or EPS Printer
    ... Format inside an RTF file so that it can be viewed with any Word processor that handles RTF files. ... exactly the Report, unless you are using the special Wort-RTF-Format and then the user needs word. ...
    (microsoft.public.access.reports)