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.

manual popup menu from MouseUp event no longer works...

Thread ID:

Created:

Updated:

Platform:

Replies:

43824 May 4,2006 10:58 AM May 10,2006 10:39 AM Windows Forms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 4, 2006 10:58 AM

manual popup menu from MouseUp event no longer works... we use the RMouseDownNode property which is set to null before the mouseup event is called making it impossible to see what the user has clicked on anyone any ideas on how to work around this...

Administrator [Syncfusion]
Replied On May 5, 2006 09:22 AM

having looed at the code i see that the order of calls in the sync code has changed in 2.0.5.1 the delegate mouseup was called before the reset of the RSelected but in the new version 4.1.0.60 the delegate is called after the reset of the property Is this a mistake and if so will it be fixed or is this a ''known'' change in behaviour...

Vijayanand S [Syncfusion]
Replied On May 10, 2006 10:39 AM

Hi Peter, Sorry for the delay in responding. I was able to reproduce the issue (RMouseDown property is set to null before the MouseUp event is triggered) and it has been fixed internally. Thanks for your suggestion about this issue. As a workaround, you can use the following code in MouseUp event to get the node which is clicked by mouse rightbutton. if(e.Button==MouseButtons.Right) { Point p=this.treeViewAdv1.PointToClient(Control.MousePosition); TreeNodeAdv node=this.treeViewAdv1.PointToNode(p); this.treeViewAdv1.SelectedNode=node; this.popupMenu1.Show(this,p); } Please take a look at the attached sample and let me know if you have any questions. Regards, Vijay TreeMouseUP.zip

CONFIRMATION

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.

;