Creating a on screen keyboard

Soldato
Joined
18 Oct 2002
Posts
3,074
Location
MK
I'm trying to create an on screen keyboard, for a touch screen application.

I'm trying to get a few ideas on how to do it, her are a few of my ideas...

Each time a command button is pressed, it sends the tag value to a array, which is then sent to a text box.
Its sounds good, but having a slight problem doing it :(

Send each command button value to a listbox, then transfer all the items of the listbox into a text box.
I tried to do this but getting errors in a for loop :(
Code:
For i = 1 To List1.ListCount
key = List1.ListIndex(i)
Text1.Text = key
Next

Make the listbox horizontal? Is this possible? Still would need to sort out the for loop to get all the letters.

Its in VB, any help would be great!
 
Its ok people! No need to panic :D

I created a control array of command buttons, and set each one with a different tag.

Heres the code if it is any use to anyone!

Code:
 Private Sub CmdKey_Click(Index As Integer)
 txtOutput = txtOutput.Text & CmdKey(Index).Tag
 End Sub
 
When I created a touch screen I made a OSK aswell, all I did was simulate inputs from the keyboard :) Made it easier using arrow keys to move round and delete things :)
 
Evil-Penguin said:
When I created a touch screen I made a OSK aswell, all I did was simulate inputs from the keyboard :) Made it easier using arrow keys to move round and delete things :)

cool, did you swap between forms at all?

I'm having trouble with a naggling thing!

I want to save a playlist by name, so the keyboard will come up, then what ever was inputted is the playlist name.

How do i get the code to work so that only once the enter button is pressed on the keyboard the rest of the code will run?
 
Yeah, I had one form that was my main interface and had a text input so a keyboard could be used if one was attatched, and then a button next to it to open my other form with the OSK, with another text input at the bottom of the form. When opening the OSK i just let the text value equal what was on my interface form, and when closing the OSK i let the text value on the interface form equal what was on the OSK.

Not sure if I fully understand your problem, but when you say the enter key on the keyboard, you mean the on screen keyboard, then isn't it simple enough - Just use it as a button which runs the rest of your code to save it, rather than act as a key input?
 
Back
Top Bottom