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

Hot tracking in WindowsFormsHost

2 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 02 May 2014, 02:44 PM
I'm having a issue with the hot tracking of input controls hosted on a WindowsFormsHost in an WPF application.

The situation is a host that has half a dozen RadTextBoxes on it, stacked vertically. We have our own custom theme which hot tracks the mouse movement by changing the border of the text boxes - much in the same way that the Windows 7 theme does, going from grey to blue when the mouse moves over the control.

If I now move my mouse up and down the form, going back and forth over the text boxes, the border colour changes don't always change correctly. It basically seems a little random. There are no issues with any of this functionality if I'm using the controls in a WinForms applications. 

I'm not sure whether this is a WindowsFormsHost problem not catching the hover events properly, or a problem with hosted telerik controls, but any help would be appreciated. 

Thanks

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 May 2014, 12:33 PM
Hello Jason,

Thank you for your report.

The WindowsFormsHost control have a different mouse events life cycle than standard winforms application (some mouse leave, enter and wheel events are not fired) and we cannot change this behavior. As a workaround I can suggest to change the TextBox border only in case that TextBox contains focus instead of hot tracking.

I hope this will applicable for you application because we are not able to provide solution for this.

Regards,
Peter
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Jason
Top achievements
Rank 1
answered on 06 May 2014, 07:37 AM
Thanks. I was guessing it might be an issue with the host control itself
Tags
General Discussions
Asked by
Jason
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jason
Top achievements
Rank 1
Share this question
or