Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to add a footnote into a RichEdit?

Posted on 1998-04-26
4
Medium Priority
?
372 Views
Last Modified: 2013-11-22
When I load a *.rtf file with footnote into the richedit, the footnote displays right. And then, if I copy the
footnote and paste it to the other place of the RichEdit
the result is right again. It's Fine. But how I make
the footnote myself, and then put it into the clean richedit?
It is easy to set usual styles like Bold, Italic ext.
but how about the footnote? I think, there must be some
solution becouse the footnote will display right if
I copy exists footnote or load it from the rtf-file.

- Rauno -
0
Comment
Question by:raunol
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 100 total points
ID: 1337078
Hi raunol,

I found this on the net :

Peter Below wrote :

Steve,

                           the richedit control supports only a subset of RTF and footnotes are not
                           among them. So you would need to post-process the produced RTF file. You can
                           find the RTF specs as far as it is supported by the help compiler in the
                           hcw.hlp file in your help\tools directory under the Delphi root. The full RTF
                           specs can be found on Microsofts website or the MSDN Library CD.

                           Peter Below (TeamB) 100113.1101@compuserve.com)

Regards, ZiF.
0
 

Author Comment

by:raunol
ID: 1337079
Hi,

Thank's about Your answer. Do it mean in practic that
I first save rtf-file, and then I manipulate the file and
add footnote-code? It will work, but is complicated.

Rtf-specks I have, but the problem was
how to get the TRichEdit working straight so that
it understand footnotes? Like I asked, the
control reads footnotes from the file and after
then also displays them correctly, but do You know
how I can just write footnotes my self? If I
write rtf-code "/footnote" to richedit it
will display as text, not like it should.
Also SaveToFile-method adds double "//" mark for
my "/footnote", so the code I wrote corrupted.

Stupid that there are in TTextAttributes only bold,
italic and single underlying. Can I add more styles?

RichEdit-component doesn't display correctly for example double-underlying, but footnotes it displays correctly!
So I think there must be some way to write text with footnotes self too, so that they display correctly in the control, not only then when I read them from the file. Hopeless I explaned understandably, mostly I speak Finnish ;-)

- Rauno -

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337080
Hi raunol,

As far as I know, you've to make an enhanced TRichEdit, if you want these functions. Maybe some authors already made such a RichEdit.... Look at Delphi Super Page and Torries for example..

Regards, ZiF.
0
 

Author Comment

by:raunol
ID: 1337081
Hi, zif

Ok, thanks for Your comment and answer.
(Btw, in the pages You mentioned, there are a lot of
 interesting for delphi)

- Rauno -
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question