I need to make a 9×9 button grid (like a sudoku board) for the user to interact (simply touch the screen) and capture the “coordinates” of the pressed button…
Any ideas on how to solve this?
thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure why you want that, but I prepared this for you:
Basically, all buttons use the same callback, and there you can check the button frame as needed. If you do not need the location, but just know which button was pressed, you could simply use a tag for each button, and check the tag property on the callback.