Is there an example for selecting a graphic as a button in canvas. Have the canvas created with icons struggling a bit to figure out which is selected.
You have to use the PointerUp and PointerDown events to get the location of a tap on then canvas.
The position is in the pos (xojo.core.point) parameter of the event.
With this information you can evaluate which icon was tapped.
i am try to do exactly that… how to put static image to the canvas??
what code do i need in the pointer up and pointer down???
thanks… playing around with now… work wonderful