Using Canvas for icon button

  1. 6 weeks ago

    Ken K

    Feb 16 Pre-Release Testers, Xojo Pro Florida

    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.

  2. 5 weeks ago

    Hans-Jürgen M

    Feb 23 Pre-Release Testers, Xojo Pro Europe (Germany, Duisburg)

    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.

or Sign Up to reply!