1

I am implementing a text service on windows XP, using microsoft text services framework. I use ITfRange obtained through selection. With MSOffice apps as front end, the ITfRange->shiftStart interface behaves correctly. But when using with many other applications like libreoffice, google chrome, firefox etc. the ShiftStart, does not shift the start point of selection nor does ShiftEnd shift the end point of selection. What could be going wrong.

skaffman
  • 398,947
  • 96
  • 818
  • 769
Pankaj Lal
  • 307
  • 1
  • 12

1 Answers1

1

It's entirely possible that the applications you mention do not actually implement Text Services Framework. If an application doesn't implement Text Services Framework, then a default implementation takes over - this is the "transitory context" that I describe in my blog. In particular, you are not allowed to manipulate the selection in a transitory context (because you're not actually talking to the application).

Eric Brown
  • 13,774
  • 7
  • 30
  • 71
  • 1
    Thanks Eric. This really helped. I got confused because I thought if I can do text insertions then it implies that the application is TSF aware. This is not the case. I would now have a limited implementation of functionality I am attempting to write using compositions. Should serve my purpose. – Pankaj Lal Feb 02 '12 at 07:39