RxRichEdit text containing [] symbols
Hi,
I am posting this message to this forum although it is for version 2.x because I guess it applies to both:
We are using fibplus 2.x and have the following problem:
The fastreport tries to replace every occurance of [some string] in the text with the value of the variable named some string. It is okay, unless you need to really output the text [some string] in an RxRichView component. How can we deactivate the macro substitution for RxRichView component? I found that the substitution is made in the following function:
1. make escape sequence for the [] symbols (e.g. the \[ would be changed to [ and would not try to substitute it as a macro)
2. allow for changing the macro start/end delimiters to something else (at best longer than 1 character, so one could choose an appropriate string, that is not contained within the text).
3. Publish a property which controls if macro substitution should be done on the contents of the rxrichedit component
Thanks in advance,
Dimo Velev
PS. The Forum software seems to do that correctly with the bbcode (or whatever name it has...)
I am posting this message to this forum although it is for version 2.x because I guess it applies to both:
We are using fibplus 2.x and have the following problem:
The fastreport tries to replace every occurance of [some string] in the text with the value of the variable named some string. It is okay, unless you need to really output the text [some string] in an RxRichView component. How can we deactivate the macro substitution for RxRichView component? I found that the substitution is made in the following function:
so i commented it out and it seems to achieve what I want (text containing [] in rxrichview). However this workaround changes your source codes and would make it harder to move to newer versions. Could you integrate one of the following:procedure TfrRxRichView.GetRichData(ASource: TCustomMemo);
1. make escape sequence for the [] symbols (e.g. the \[ would be changed to [ and would not try to substitute it as a macro)
2. allow for changing the macro start/end delimiters to something else (at best longer than 1 character, so one could choose an appropriate string, that is not contained within the text).
3. Publish a property which controls if macro substitution should be done on the contents of the rxrichedit component
Thanks in advance,
Dimo Velev
PS. The Forum software seems to do that correctly with the bbcode (or whatever name it has...)
Comments
Fr3 rtf object has an expression delimiter property which can be set to other characters.
Thank you again,
Dimo
I have the same problem but using CrossView.
Cross didn't have this property of delimiters, really?
I use 3.09 version, not 2.
What can i do?
Thank you.