A anaylor01 Well-Known Member Licensed User Longtime User Jun 22, 2011 #1 I want to capture keyboard input and put the text on a canvas. When the user clicks a button I want to open the keyboard and then capture what they type and put that on the canvas. Can this be done? If so is there an example somewhere? I am getting a signature does not match expected signature error.
I want to capture keyboard input and put the text on a canvas. When the user clicks a button I want to open the keyboard and then capture what they type and put that on the canvas. Can this be done? If so is there an example somewhere? I am getting a signature does not match expected signature error.
Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2011 #2 You can try setting the focus to an EditText which is located out of the viewable screen. Then you can use the TextChanged event to handle the input. I am getting a signature does not match expected signature error Click to expand... We cannot help if you don't post the code and the full error message. Upvote 0
You can try setting the focus to an EditText which is located out of the viewable screen. Then you can use the TextChanged event to handle the input. I am getting a signature does not match expected signature error Click to expand... We cannot help if you don't post the code and the full error message.
A anaylor01 Well-Known Member Licensed User Longtime User Jun 22, 2011 #3 Oh. So I can set the left of the edittext box to screenwidth + 10? That's cool I didn't know you could do that. I thought I deleted that part about the error. I figured it out. Thanks Erel. Upvote 0
Oh. So I can set the left of the edittext box to screenwidth + 10? That's cool I didn't know you could do that. I thought I deleted that part about the error. I figured it out. Thanks Erel.
A anaylor01 Well-Known Member Licensed User Longtime User Jun 22, 2011 #4 Ok. I use request focus and it puts the cursor in the edittext box but it doesn't bring up the keyboard. Am I doing something wrong? Code: Sub btnText_click edtblank.RequestFocus End Sub Upvote 0
Ok. I use request focus and it puts the cursor in the edittext box but it doesn't bring up the keyboard. Am I doing something wrong? Code: Sub btnText_click edtblank.RequestFocus End Sub
Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2011 #5 You are right. It will not work without the user clicking on the EditText. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Jun 22, 2011 #6 So there is no way to open the keyboard programmatically? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2011 #7 Currently there is no way. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Jun 22, 2011 #8 So programmatically you can create a touch event? Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Jun 22, 2011 #9 I put the code in the textchanged event but it doesn't put it on the screen until I press the Done button. I want it to show each letter as it is typed. Upvote 0
I put the code in the textchanged event but it doesn't put it on the screen until I press the Done button. I want it to show each letter as it is typed.