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
Footnote formatting
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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
together with assigning other Result's properties.
This change will be included in the next update.
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;
This change will be included in the next update.