iOS Question Button_Down event handler

Discussion in 'iOS Questions' started by Alejandro Migoya, May 28, 2015.

  1. Alejandro Migoya

    Alejandro Migoya Member Licensed User

    I created a button (BtnStart) using the Designer-Window, generated members, and then added this sub manually to my code:

    Sub BtnStart_Down
    ...
    End Sub

    But my code doen´t trigger the down event. Any suggestions?

    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you asking about B4A or B4i?
     
  3. Alejandro Migoya

    Alejandro Migoya Member Licensed User

    B4i, thanks Erel.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no such event.

    [​IMG]
     
  5. klaus

    klaus Expert Licensed User

    Do you really need the Down event ?
    If yes, you could use a Panel instead of the Button and use the Touch event.
     
    Erel likes this.
  6. Alejandro Migoya

    Alejandro Migoya Member Licensed User

    Thanks for the suggestion Klaus. It´s for a process where the user needs to hold down the button for some time (something happens while button is pressed) and then when button is released another events triggers.
    I was hopping to use the DOWN and UP events tied to a timer.

    Any suggestions?
     
  7. klaus

    klaus Expert Licensed User

    As already suggested, use a Panel and in the Touch event you can manage what you want also with the Timer.
     
  8. Alejandro Migoya

    Alejandro Migoya Member Licensed User

    Thanks Klaus, it´s working now!
     
  9. narek adonts

    narek adonts Well-Known Member Licensed User

    Use GestureRecognizer
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice