Windows 8桌面应用程序:打开tabtip.exe到辅助键盘(用于数字文本框) [英] Windows 8 Desktop App: Open tabtip.exe to secondary keyboard (for numeric textbox)

查看:389
本文介绍了Windows 8桌面应用程序:打开tabtip.exe到辅助键盘(用于数字文本框)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个在Windows 7平板电脑上运行的桌面WPF 应用,并正在向其中添加一些带有Windows 8的Surface Pro设备.

We're working on a desktop WPF app that runs on Windows 7 tablets and are adding some Surface Pro units with windows 8 to the mix.

我们立即注意到,当TextBox获得焦点时,小键盘小图标不再显示.我们通过在所有TextBoxes的MouseDown事件上运行"tabtip.exe"来解决该问题.

We noticed immediately that the little keyboard icon no longer displays when a TextBox receives focus. We solved it by running "tabtip.exe" on the MouseDown event for all TextBoxes.

虽然我们有一些数字文本框(订单上某个项目的数量),并且希望打开屏幕上的键盘以进行数字输入,但是默认情况下它会使用qwerty键打开.

We have some numeric textboxes though (quantity for an item on an order), and want to open the on-screen keyboard for numeric entry, but it opens with qwerty keys by default.

我一直在广泛地寻找可以传递给tabtip.exe来更改其输入模式的任何命令行参数,但是没有运气.对于Metro风格的应用程序来说,这似乎是一件微不足道的任务,但在桌面端则不可能.

I have been searching extensively for any command-line arguments I can pass to tabtip.exe to change its input mode, but have had no luck. This seems like a trivial task with a metro-style app, but impossible on the desktop side.

是否可以使用tabtip.exe的命令行参数来完成此操作?

Is there a command-line argument to tabtip.exe I can use to accomplish this?

推荐答案

(Windows 8) 更改REG_DWORD KeyboardLayoutPreference 0的值是常规布局 1的值是拆分键盘,中间是数字键盘

in HKEY_CURRENT_USER\Software\Microsoft\TabletTip\1.7 (Windows 8) change the REG_DWORD KeyboardLayoutPreference value of 0 is the regular layout value of 1 is the split keyboard with the numberpad in the middle

REG_DWORD LastUsedModalityWasHandwriting也必须为0,否则,如果1,则再次启动Tabtip时,它将用笔手写区域打开.

the REG_DWORD LastUsedModalityWasHandwriting also has to be 0 or if 1, when tabtip is started again it will open with the pen handwriting area.

这篇关于Windows 8桌面应用程序:打开tabtip.exe到辅助键盘(用于数字文本框)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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