RxRichEdit text containing [] symbols
Hi,
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...)
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...)