We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Accessible Object HitTest in GroupView

I have a UI that allows the user to delete a GroupViewItem from the GroupView control using a context/popup menu. I''d like to select the button that is being deleted when the right mouse click occurs. The following HitTest works but is one button off. (e.g. right click on button three selects button two, click two to select one etc). Any thoughts? private void groupFolders_MouseDown(object sender, MouseEventArgs e) { AccessibleObject obj = this.groupFolders.AccessibilityObject.HitTest(e.X,e.Y) ; if (obj != null && obj.Role == AccessibleRole.ListItem) { obj.Select(AccessibleSelection.TakeSelection) ; } }

1 Reply

AD Administrator Syncfusion Team August 14, 2005 09:44 PM

Hi Daniel, You could use the GroupView''s PointToItem method for this purpose. Let me know if this meets your requirements. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon