This is a migrated thread and some comments may be shown as answers.

Themed RadButton click visual appearance on TouchScreen

1 Answer 12 Views
This is a migrated thread and some comments may be shown as answers.
Luc
Top achievements
Rank 1
Luc asked on 18 May 2018, 07:32 PM

Hello,

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?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 21 May 2018, 10:29 AM
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.

Regards,
Hristo
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.
Asked by
Luc
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or