Using Canvas for icon button

  1. 10 months ago

    Ken K

    16 Feb 2017 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. Hans-Jürgen M

    23 Feb 2017 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.

  3. 6 months ago

    Richard D

    16 Jun 2017 Pre-Release Testers Europe (UK, London)

    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???

  4. Jean-Paul D

    16 Jun 2017 Pre-Release Testers

    @Richard D 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???

    hi, simple example here:

  5. Richard D

    16 Jun 2017 Pre-Release Testers Europe (UK, London)

    @jean-pauldevulder hi, simple example here:

    thanks.. playing around with now.. work wonderful

or Sign Up to reply!