An idea for footnote-handling: will this work?
Posted: Mon Mar 13, 2006 1:45 pm
Hi there,
In my eternal quest to find a good way to handle footnotes in TRichViewEdit, I have an idea I'd like to run by you:
Do you think it would be practical to store formatted text, created in a separate TRichViewEdit control, in the PChar strings associated with an item in another TRichViewEdit? Here's what I imagine:
In the main edit control, the user inserts a footnote. In another TRichViewEdit which pops up, the user then writes and formats the footnote text. Then I stream out this text in RVF to a string stream, and store the string as a PChar tag (rvoTagsArePChars) in the main TRichViewEdit. When I need to show the comment again, I stream out the contents of the tag into the footnote editing control.
Does this sound like a practical approach? I'm working with Unicode text.
Cheers,
Martin
In my eternal quest to find a good way to handle footnotes in TRichViewEdit, I have an idea I'd like to run by you:
Do you think it would be practical to store formatted text, created in a separate TRichViewEdit control, in the PChar strings associated with an item in another TRichViewEdit? Here's what I imagine:
In the main edit control, the user inserts a footnote. In another TRichViewEdit which pops up, the user then writes and formats the footnote text. Then I stream out this text in RVF to a string stream, and store the string as a PChar tag (rvoTagsArePChars) in the main TRichViewEdit. When I need to show the comment again, I stream out the contents of the tag into the footnote editing control.
Does this sound like a practical approach? I'm working with Unicode text.
Cheers,
Martin