Set Touch Area of a Widget

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

    • Set Touch Area of a Widget

      Hi,

      Is there a way of increasing the touch area of a widget, for instance a dropdown, without increasing the size of the widget.

      Am I able to set an area around the widget where if touched will open the dropdown for example or notify the parent window.

      Thanks,
    • Hi,

      there is no default API for such a case.

      But, you could create an invisible window behind the widget and react on touch input (WM_TOUCH). Depending on the widget you can tell it to expand (DROPDOWN). But I doubt that this is easy for all the widgets.

      Another possibility is to draw the widget on your own. This way you can create it larger and draw only a small 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.