Invoke Windows touch keyboard? Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
USB3pt0
Earned a small fee
Earned a small fee
Posts: 18
Joined: Mon May 04, 2020 3:03 pm

Invoke Windows touch keyboard?

Post by USB3pt0 » Thu Jul 02, 2020 3:55 pm

Hi,

The app I'm working on is intended to be deployed onto touch screen devices. The user will occasionally need to input alphanumeric characters for purposes of saving files and the like.

Right now, I have a keyboard made up in wxWidgets using buttons and a text control, but would like to use the built in Windows 10 touch keyboard. Unfortunately, I have no idea how to invoke it.

Any samples I see from Microsoft are for c# or something else entirely.

Does anyone have experience using it that can point me in the right direction?

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Invoke Windows touch keyboard?

Post by doublemax » Thu Jul 02, 2020 4:58 pm

Doesn't Windows 10 in tablet mode open the onscreen keyboard automatically when a text field gets focus?

If it doesn't, all posts i found about this seem to indicate that there is no "offical" API call to do it. They just invoke "osk.exe" in the Windows/system32 directory.
Use the source, Luke!

USB3pt0
Earned a small fee
Earned a small fee
Posts: 18
Joined: Mon May 04, 2020 3:03 pm

Re: Invoke Windows touch keyboard?

Post by USB3pt0 » Thu Jul 02, 2020 5:06 pm

I went into Tablet mode to see, but clicking the text field in it didn't seem to make a difference.

I will look into invoking osk.exe, either that or adding what the keyboard that exists needs.

Thank you.

Post Reply