Drag touch on buttons

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Drag touch on buttons

      Hi,

      We've a touch screen application, in which we use different widgets, in particulare BUTTONs. We've noticed that, if we've more than one button in a window, touching on one button triggers a WM_NOTIFICATION_CLICKED message: this is ok.
      Touching on a button and moving the finger while keeping touched, trigger WM_NOTIFICATION_CLICKED and a WM_NOTIFICATION_MOVED_OUT if the finger is moved out of button area: that still ok.
      But why, if I press a button and, keeping touched, I move the finger on another button, a WM_NOTIFICATION_CLICKED message is sent also for the second button?
      This "drag" behaviour is ok for SCROLLBARs, SLIDERs, .., but why is this allowed for BUTTONs?

      Thanks
      Andrea
    • Hi,

      Try to call BUTTON_SetReactOnLevel(). This will cause the buttons to send click messages only when the down event occurs in the button area.

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.