We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm a beginner, I'm trying to create a simple application with 2 numeric input box. I would like return the sum of these in another box. But I don't know how to create the input box and to take the value in the two respective variables. Would you know how I could do it?
Answers
Let’s say you have setup and draw
You have 2 String variables defined before setup as ““ Make a 3rd function keyPressed
Here say
When Return is presses say
textBox1HasFocus=false;
Before setup say
In draw () use rect() and text(str1 ,.....
and text(str2, ....
Then when return is pressed again display the sum....
Hit ctrl-t
Show your entire code here
https://Gist.GitHub.com/GoToLoop/bba0c288aaeeb5ef9bb1
Sorry I didn't understand very well Chrisir.
At moment my code is
Thanks GotoLoop I would try to learn step by step how to make this thing if it's possible,
I worked a little on your sketh