Solved

How to add a footnote into a RichEdit?

Posted on 1998-04-26
4
355 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 103
TVirtualStringTree  search using TEdit 7 103
URL for downloading Google Chrome for Win XP 2 118
LAN or WAN ? 11 81
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

937 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now