I have this RTF hyperlink in a TRichViewEdit after loading an RTF file:
Code: Select all
{\field{\*\fldinst{HYPERLINK "$noprint:\{1\}"}}{\*\fldtitle{$noprint:\{1\}}}
{\fldrslt{\f0\cf1 pre-cloaked\f0\cf0 \f0\cf1\b red\f0\cf1\b0 line\f0\cf0}}}
Code: Select all
var vTag := String(RichViewEdit1.GetCurrentTag);
if vTag.StartsWith('$noprint:{0}', true) then
RichViewEdit1.SetCurrentTag(ReplaceStr(vTag, '{0}', '{1}'))
else if vTag.StartsWith('$noprint:{1}', true) then
RichViewEdit1.SetCurrentTag(ReplaceStr(vTag, '{1}', '{0}'));
Code: Select all
{\field{\*\fldinst HYPERLINK "$noprint:\{1\}"}
{\fldrslt \plain \f0\fs20\cf11 pre-cloaked\plain \f0\fs20 \plain \f0\b\fs20\cf11 red}}
{\field{\*\fldinst HYPERLINK "$noprint:\{0\}"}{\fldrslt \plain \f0\fs20\cf11 line}}
I'm not sure how to get around this. I've also tried using GetCurrentItem and updating the tag that way, but the same thing occurs. Help?
Eric