LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

On-screen keyboard

Solved!
Go to solution

I want to develop a custom on screen keyboard for my LabVIEW application which is going to be running on a touchscreen. Is there any easy way of linking this to the text inputs of standard labview front panel objects- file requesters, text boxes etc- without creating my own special controls for each one?

0 Kudos
Message 1 of 6
(3,722 Views)

Have you considered using the Windows built-in On-Screen Keyboard ?

I used it for my touch screen project.

 

George Zou
Message 2 of 6
(3,718 Views)

Hey thanks George. It is one idea I am considering, but ideally I would like to create something myself in LV to better fit in with my app and use screen space to maximum effect.

0 Kudos
Message 3 of 6
(3,708 Views)

Just in case you don't know, you can resize the MS version of OSK.

I did.  So I can have move screen space.

 

 

George Zou
Message 4 of 6
(3,646 Views)
Solution
Accepted by topic author ToeCutter

Hello ToeCutter,

 

I second the idea of using the OS's on-screen keyboard, but if you do want to create your own you should be able to use Find Control with Key Focus method to insert text into whichever string control is currently selected:

 

LabVIEW Help: Find Control with Key Focus Method

http://zone.ni.com/reference/en-XX/help/371361K-01/lvprop/vi_find_control_with_key_focus/

 

You'll still want to pre-screen the returned references to ensure that a valid control has been selected in case the user selects something else with the keyboard open.

 

This is assuming you want some sort of non-modal floating or docked keyboard, if you want a pop-up on click keyboard monitoring mouse down events on string terminals and launching a keyboard linked to that control could also work, but it seems clunkier.

 

Regards,

Tom L.
Message 5 of 6
(3,628 Views)

Thanks, Tom.

 

What you mention is largely what I have already developed since my last post and it all does work quite nicely, however the method to get the control with current focus was not one I was aware of- this will allow me to simplify my code quite a bit!

 

My only conundrum now is if there's a way to make the keyboard panel not steal control focus- if this is possible I can create an on screen keyboard for use with applications other than LabVIEW which would be a bonus!

0 Kudos
Message 6 of 6
(3,609 Views)