Page 1 of 1

Footnote formatting

Posted: Fri Jan 03, 2014 11:53 am
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

Posted: Sat Jan 04, 2014 1:37 pm
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.