Themed RadButton click visual appearance on TouchScreen

2 posts, 0 answers
  1. Luc
    Luc avatar
    2 posts
    Member since:
    Mar 2011

    Posted 18 May 2018 Link to this post


    I am using a RadButton with a touch theme and when I tap it on a touchscreen, the visual appearance of the button (to show a click occured) doesn't show.  It shows if I use a mouse and click the button.  When using a touchscreen the button remains flat with no visual that I tap on it.

    I use Telerik WinForms 2013 Q3 1328

    Is there a solution for that?


  2. Hristo
    Hristo avatar
    1520 posts

    Posted 21 May 2018 Link to this post

    Hi Luc,

    Thank you for writing.

    The back color of the button is painted in its pressed state. The pressed state is set after receiving a WM_LBUTTONDOWN message sent by the operating system. With a mouse pointing device, this message is sent and captured immediately. On a touch system, however, tapping the button with a finger will not send the WM_LBUTTONDOWN immediately and the message will be sent when you slightly pan or raise your finger. That is why the back color of the button is not adjusted by the theme, simply its Pressed is set too late and then the button is painted with its default color after performing the Click. Exactly the same behavior can be observed with the standard Microsoft button, and you can test it by subscribing the control to its MouseDown event.

    As a solution, I can suggest using the SetThemeValueOverride API and to manually change the back-color. After a small interval, you can reset it to its theme-defined value. Please note, however, that this API has been introduced in the Q3 2015 release.

    I am also sending you my test project demonstrating how this can be achieved. Let me know if you need further assistance.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top