Hi, a "programming" question.
I can put a canvas on a panel and detect "touches" , finger down and up, x and y coordinates.
OK.
Imagine that my canvas is divided into areas, with lines visible across it.
Now i want to know which "area" was touched.
Question: i can do this with IF statements, style "if x < than ... and Y >... etc ", that is tedious.
It would be easier if i could do a select case, with some kind of "between" statements.
I think that is not possible, unless there is some B4A function i am unaware of.
Thanks for any advice.
Paul
I can put a canvas on a panel and detect "touches" , finger down and up, x and y coordinates.
OK.
Imagine that my canvas is divided into areas, with lines visible across it.
Now i want to know which "area" was touched.
Question: i can do this with IF statements, style "if x < than ... and Y >... etc ", that is tedious.
It would be easier if i could do a select case, with some kind of "between" statements.
I think that is not possible, unless there is some B4A function i am unaware of.
Thanks for any advice.
Paul