OnScreen Keyboard

I’m doing small windows program for touchscreen. I’m going to make my own OnScreen keyboard for it (as ContainedControl with buttons for numbers and chars) that is displayed when textfield is selected. But I can’t figure out how to output chars from containedcontroller to specified textfield.
If I have textfield1, textfield2 and textfield3, how do I know which called this KeyboardControl and how to output chars to this textfield?
Please give me a ideas how to start this.


You could have a TextField property in the ContainerControl (ActiveField) and set this in the GotFocus event of the TextFields

MyContainerControl.ActiveField = me

MyContainerControl.ActiveField = nil

Ah, I didn’t even think that property type can be textfield.
Perfect, Thank You!