I have problem with tags and text items.
I have a RichViewEdit control on my form. There is a text item with tag (TagsArePChars is ON). I'm adding "SomeText" to the item using the code:
Code: Select all
RVE->SetItemTextEd(RVE->CurItemNo, L"\{SomeText\}");
{Some_TwoWords_Text}
Next code approves that anywhere inside the braces it is still the same TextItem with the same Tag:
Code: Select all
(wchar_t*)RVE->GetItemTag(RVE->CurItemNo);
Code: Select all
RVE->GetItemText(RVE->CurItemNo);
1. "{Some"
2. "_TwoWords_"
3. "Text}"
Why one item with one tag has three different text fields?
P.S. I'm using C++ Builder 2010