Item's text fragmentation
Posted: Tue Dec 22, 2009 1:34 pm
Hi,
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:
After that I'm manually typing "_TwoWords_" inside that item:
{Some_TwoWords_Text}
Next code approves that anywhere inside the braces it is still the same TextItem with the same Tag:
And when I'm trying to get text of the current item
I'm getting different results based on cursor position inside braces:
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
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