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


      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.

    • 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.