简体   繁体   English

打开Windows 8触摸键盘

[英]Opening the Windows 8 touch keyboard

Does somebody know how open the "windows 8 touch keyboard" from an SWT application? 有人知道如何从SWT应用程序打开“ Windows 8触摸键盘”吗?

I want to open the "touch keyboard" when the SWT input get focus, like other native applications do. 我想在SWT输入获得焦点时打开“触摸键盘”,就像其他本机应用程序一样。

Perhaps there is a particular "style" to use, when instantiating the Text class? 实例化Text类时,也许有一种特定的“样式”要使用?

Something like: 就像是:

text = new Text(shell, SWT.OPEN_TOUCH_KEYBOARD);

You can open the on screen keyboard by calling 您可以通过调用打开屏幕键盘

Program.launch("osk.exe");

when the Text gains focus. Text获得关注时。

That'll make your application very platform (and even version) specific, so make sure that you're running an OS that has the on screen keyboard available. 这将使您的应用程序具有特定于平台(甚至版本)的特定性,因此请确保您正在运行的操作系统具有可用的屏幕键盘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM