键盘(虚拟键盘)和文本框 [英] keyboard (virtual keyboard) and textbox

查看:239
本文介绍了键盘(虚拟键盘)和文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在窗口中有一个文本框..当我单击txtbox时,应该弹出一个虚拟键盘(单独的.exe)...这是我的问题,我该如何在所需的位置制作此键盘(.exe)在那个窗户里...如果可能的话给我个主意吗?


而且我想在文本框中使用该键盘..

解决方案

检查一下
http://博客. microsoft.co.il/blogs/tamir/archive/2008/02/13/custom-editors-accessibility-and-attached-properties.aspx [ http://msdn.microsoft.com/en-us/library/ms646310(v = vs.85).aspx [ ^ ]),尝试单击虚拟键会抓住焦点.

解决方案是:窗口应具有不激活"样式,所有控件均应不可聚焦.要使虚拟键盘保持可操作状态,只有一种方法-将其设置为最高(始终处于最高样式).它没有被激活(从不)并且仍然位于顶部. (您怎么看,如果没有一些奇特的功能,您能解决这个难题吗?否!:-))

祝你好运,
—SA


hi im having a textbox in a window..when i click the txtbox one virtual keyboard(separate .exe) should pop up...here s my question how can i make this keyboard(.exe) in my desired location in that windows...if possible give me any idea???


and i want that keyboard under the textbox..

解决方案

Check this out
http://blogs.microsoft.co.il/blogs/tamir/archive/2008/02/13/custom-editors-accessibility-and-attached-properties.aspx[^]


The problem is: if you virtual keyboard is based on actual focus (you can use Windows API SendInput to simulate keyboard on low level, see http://msdn.microsoft.com/en-us/library/ms646310(v=vs.85).aspx[^]), an attempt to click on virtual key grabs the focus.

The solution is: the window should be with the "no activate" style, all controls should be non-focusable. To keep your virtual keyboard operational, there is only one way — to make it also the topmost (always on top style). It is not activated (never) and still on top. (How do you think, can you solve such a difficult problem without some exotic features? No! :-))

Good luck,
—SA


这篇关于键盘(虚拟键盘)和文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆