ITfRange through text services framework does not honour shiftStart shiftEnd with many applications

232 views Asked by At

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.

1

There are 1 answers

1
Eric Brown On BEST ANSWER

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).