G'day "Andrew Sharpe" <AndrewSharpe@discussions.microsoft.com>,
There are 'virtual chars' that are not content. Eg, the para mark,
field boundaries, table cell markers etc ad nausem
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Andrew Sharpe reckoned:
>If I catch the WindowSelectionChange event and then check the value of
>Sel.Start, it seems to return the right value until you insert an XML Node
[quoted text clipped - 4 lines]
>
>Is this a bug or am I missing something? I am using Word 2003 (11.5604.5606).
Andrew Sharpe - 14 Jun 2005 14:50 GMT
Well if you click instead of using the arrow keys, I think you'll find that
the field boundaries and XML node markers are actually considered one
character each so far as the selection index goes (as long as you have them
shown). Just play around with the event a little, you'll find that the
character just in front of the XML node sometimes comes up as x, and other
times as y, depending on how you got the selection cursor there. Cursoring
back over the node yields a different result than cursoring to the node or
clicking with the mouse.
So I think my question is still...in question.
Andrew
> G'day "Andrew Sharpe" <AndrewSharpe@discussions.microsoft.com>,
>
[quoted text clipped - 16 lines]
> >
> >Is this a bug or am I missing something? I am using Word 2003 (11.5604.5606).