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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Accessible Object HitTest in GroupView

Thread ID:





33066 Aug 12,2005 12:35 AM UTC Aug 15,2005 02:44 AM UTC WinForms 1
Tags: Tools
Daniel Byers
Asked On August 12, 2005 12:35 AM UTC

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) ; } }

Administrator [Syncfusion]
Replied On August 15, 2005 02:44 AM UTC

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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon