trichview.com

trichview.support




Re: behavior of GetItemAt or GetCurItem


Return to index


Author

Message

Sergey Tkachenko

Posted: 09/23/2003 15:44:14


These functions return one item. For text, item is usually a text of the

same formatting ("style") and without line break characters. In some cases,

the whole paragraph is one item.


How to get more detailed information:

* under the mouse

- GetWordAt method

- GetItemAt method returns OffsetInItem parameter allowing to determine a

character under the mouse pointer

* at the caret position

- TopLevelEditor.CurItemNo, TopLevelEditor.OffsetInCurItem properties define

a caret position;

- some functions from http://www.trichview.com/support/files/rvgettext.zip

can be useful



>

> Hello:

> Y try to use the functions GetItemAt or GetCurItem, and I expected that

the

> result was the item, that is the letter or word over the cursor or the

caret

> is, but these functions return the complete paragraph. How can obtain the

> word or position over the caret or cursor is ?

> Thank you.

> Fernando Alonso





Powered by ABC Amber Outlook Express Converter