Solved

How to add a footnote into a RichEdit?

Posted on 1998-04-26
4
363 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

734 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