-1

Does somebody know how open the "windows 8 touch keyboard" from an SWT application?

I want to open the "touch keyboard" when the SWT input get focus, like other native applications do.

Perhaps there is a particular "style" to use, when instantiating the Text class?

Something like:

text = new Text(shell, SWT.OPEN_TOUCH_KEYBOARD);
Baz
  • 36,440
  • 11
  • 68
  • 94
zaquas
  • 53
  • 7

1 Answers1

2

You can open the on screen keyboard by calling

Program.launch("osk.exe");

when the Text gains focus.

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.

Baz
  • 36,440
  • 11
  • 68
  • 94
  • Thanks Baz! Yes, this is a possibility, but i thought that eclipse guys had introduce a new "style" for work with the virtual keyboard, for the os that have it – zaquas May 08 '15 at 13:29
  • @zaquas Not that I'm aware of. They can be pretty slow when it comes to adopting new technologies. They've only just added support for hi-dpi displays. – Baz May 08 '15 at 13:33
  • I think you are right... unfortunately, thanks however – zaquas May 08 '15 at 13:37