精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
Hi,How can I show the composition string in the candidate window?
I download the 9th demo example (candidatelist) , it show its composition string in the document context. but it want it to be displayed in the top line of candidatelist window. how can i make it?
the guide of text service framework says that the text service can use createcontext method to display some candidate UI, how can I use this CreateContext in Text Service and display my own UI?
嗨,如何在候选窗口中显示合成字符串?
我下载了第9个演示示例(候选列表),它在文档上下文中显示了其组成字符串。但它希望将其显示在候选列表窗口的顶行。我该怎么做?
文字服务框架指南指出,文字服务可以使用createcontext方法显示一些候选UI,如何在文字服务中使用此CreateContext并显示自己的UI?
First, if you want to display your own UI, you must set your window as owned-window. So it could display over the currently running app.
Then, you will understand when and how the application communicate with your UI. You could follow this article about this. For this, you must implement the TSF UILess mode APIs.
Last, you must Implement the TSF search integration APIs, ITfFnSearchCandidateProvider and ITfIntegratableCandidateListUIElement
For how to use CreateContext in Text Service, you could follow this sample(#2 and #3):
http://archive.msdn.microsoft.com/tsf/Release/ProjectReleases.aspx?ReleaseId=1755
It always follow the below behavior:
Create context by ITfDocumentMgr::CreateContext
push the context to the top tack by ITfDocumentMgr::Push
Then you could do something on ITfThreadMgrEventSink::OnPushContext
首先,如果要显示自己的UI,则必须将窗口设置为拥有窗口。因此它可以显示在当前正在运行的应用程序上。
然后,您将了解应用程序何时以及如何与您的UI通信。您可以关注 这篇文章 。为此,必须实现TSF UILess模式API。
最后,您必须实现TSF搜索集成API,ITfFnSearchCandidateProvider和ITfIntegratableCandidateListUIElement
有关如何在文本服务中使用CreateContext的方法,可以遵循以下示例(#2和#3):
http://archive.msdn.microsoft.com/tsf/Release/ProjectReleases.aspx?ReleaseId=1755
它始终遵循以下行为:
通过ITfDocumentMgr :: CreateContext创建上下文
通过 ITfDocumentMgr :: Push 将上下文推到最前面
然后,您可以在 ITfThreadMgrEventSink :: OnPushContext 上做一些事情
I have moved this issue to General Windows Desktop Development Issues for better response.
Thanks for your understanding.我已将此问题移至“ 常规Windows桌面开发问题” 以获取更好的响应。
感谢你的理解。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.我们正在努力更好地理解客户对社会支持经验的看法,因此,如果您有时间,将非常感谢您参与此采访项目。感谢您帮助使社区论坛成为一个好地方。
单击 此处参加调查。
TSF里的窗口处理很麻烦,TSF的安全性带来了太多限制,想找更多经验,联系锐英源。