Comment 22 for bug 246910

Revision history for this message
In , Dylan Thacker-Smith (dylan-smith) wrote :

I have been interested in working on it, but haven't gotten around to it yet. When I do start coding, I would like to not interfere with work in progress by others. So, let me know where you are at if you are working on it.

Austin Lund, you mentioned that you have an idea for a proper implementation. I was wondering what direction you were taking.

I will also share my thoughts on the implementation of windowless richedit controls. The main goal being to use as much existing richedit code to implement text services while minimizing the impact on using richedit as a control.

These are the steps I think we need to take:
1. Create a ITextHost implementation for the richedit control.

1.5? This ITextHost implementation could be manually tested against native richedit's text services to try to implement a richedit control.

2. Modify the richedit code to use the ITextHost implementation from step 1, removing it's dependance on having it's own window. This could be done incrementally, and could be tested for regressions using the existing richedit test suite.

3. Implement the ITextServices interface by using the existing richedit code, and swapping the ITextHost implementation created in step 1 with the ITextHost implementation given by the parent window (provided in the call to CreateTextServices).

Comments on this approach are more than welcome.