Footnote formatting

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
AndyBell
Posts: 30
Joined: Thu Jul 29, 2010 11:38 am
Location: Surrey, UK

Footnote formatting

Post by AndyBell »

Hi

I'm using ScaleRichView V4.3.4 with BCB 2007 and have made a unicode editor.

However, when I create a footnote using ScaleRichViewActions (i.e. I click on the footnote icon and then enter my text) I find that the footnote is not unicode aware - if I paste in unicode text it gets corrupt.

How can I control the style of the footnote to make it support unicode?

Thanks

Andy
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Footnote editor uses the same RVStyle as the main editor, i.e. SRV.RichViewEdit.Style.
So, if text styles are Unicode in this RVStyle, text must be Unicode in the note editor too.
However, there is a problem with RTF pasting - SRV.RVNote.RTFReadProperties.UnicodeMode for non-Unicode versions of Delphi/C++Builder is rvruNoUnicode, and you cannot change it manually, because RVNote is created only when a note is edited.
Solution:
SclRView.pas, function TSRichViewEdit.CreateNoteEditor, add the line

Code: Select all

  Result.RTFReadProperties := RichViewEdit.RTFReadProperties;
together with assigning other Result's properties.
This change will be included in the next update.
Post Reply