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.
Unfortunately, activation email could not send to your email. Please try again.

Accessible Object HitTest in GroupView

Thread ID:





33066 Aug 11,2005 08:35 PM Aug 14,2005 10:44 PM Windows Forms 1
Tags: Tools
Daniel Byers
Asked On August 11, 2005 08:35 PM

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 14, 2005 10: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.


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.

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.