controlling a virtual keyboard for touch enabled application
-
- Experienced Solver
- Posts: 70
- Joined: Tue Feb 25, 2020 11:34 am
controlling a virtual keyboard for touch enabled application
What is the correct way to show and hide the system's on-screen keyboard from a C++ wxWidgets application? I couldn't find an example or documentation...
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: controlling a virtual keyboard for touch enabled application
There is nothing in wxWidgets to do this in a cross-platform way. I'm not sure if it's even needed. At least under Windows 10, when ever you click into a text field on a touch device, the virtual keyboard shows up automatically.
Use the source, Luke!
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: controlling a virtual keyboard for touch enabled application
Hi,
The best way would probably be to create a floating frame with 101 buttons.
However I'm not sure how it will handle international keyboards...
Thank you.
The best way would probably be to create a floating frame with 101 buttons.
However I'm not sure how it will handle international keyboards...
Thank you.
-
- Experienced Solver
- Posts: 70
- Joined: Tue Feb 25, 2020 11:34 am
-
- Experienced Solver
- Posts: 70
- Joined: Tue Feb 25, 2020 11:34 am
Re: controlling a virtual keyboard for touch enabled application
But that would only work with native text input controls, wouldn't it?
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: controlling a virtual keyboard for touch enabled application
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: controlling a virtual keyboard for touch enabled application
Yes. For which platforms do you needs this?
For Windows it should be possible to the find the executable of the virtual keyboard and start it yourself. Google "msdn show osk".
Use the source, Luke!
-
- Experienced Solver
- Posts: 70
- Joined: Tue Feb 25, 2020 11:34 am
Re: controlling a virtual keyboard for touch enabled application
Sorry for the delay, I got side tracked by an urgent task. This is supposed to be a cross platform application running on Win10 and Linux. And yes, I need a way to activate the system's OSK in a portable way, something like a hypothetical "wxOSK::show(true)".
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: controlling a virtual keyboard for touch enabled application
There is nothing like this in wxWidgets, i guess you'll have to find a custom solution for each platform yourself.
Use the source, Luke!