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.

Symbol Selection

Thread ID:

Created:

Updated:

Platform:

Replies:

26918 Apr 4,2005 06:04 AM Apr 5,2005 06:20 AM Windows Forms 2
loading
Tags: Diagram
Tommy Norman
Asked On April 4, 2005 06:04 AM

When I click in the diagram I have discovered that symbols gets selected even when I click outside of symbols own boundaries, i.e if I click 50 pixels right of a symbol the symbol still gets selected. This is only a problem on the right side, if I click above,left or under the symbol it behavies ok, it only gets selected when I click on the symbol border. I have check the selected symbol boundaries in the diagram_SelectionChanged event handler and they it looks ok, it''s far away from the location I clicked so I can''t understand how it could be selected. I have tried to reproduce it in the Diagram Builder sample but there it seems to behave ok. Any ideas how I can track down this problem? Which event handler is responsible for doing the actual symbol select based on mouse localion? Best Regards Tommy Norman

Administrator [Syncfusion]
Replied On April 4, 2005 11:31 AM

Hi Tommy, If this problem happens when using MeasurementUnits other than the default Pixel value, then you might want to hold off till you get the new 3.2 version of Essential Diagram. There was a problem computing Symbol bounds when using Inches and other non-Pixel units, that was very recently fixed. However, if this happens when using the Pixel mode, then it is likely to be something that is specific to your symbol. The best way to test this issue is by placing a breakpoint in the Diagram Controller''s OnMouseDown handler and stepping into the call to the View.GetNodesAtPoint(...) method. The Controller.cs file can be found under the ''Diagram.Base\Src\Object Hierarchy\'' folder in your Essential Suite install. Let me know if you require further assistance on this issue. Regards, Prakash Surendra Syncfusion Inc.,

Tommy Norman
Replied On April 5, 2005 06:20 AM

Hi Prakash, I found the reason for the behaviour. It was the SymbolLabel object boundaries that caused the hit, and the reason was that I had set predefined a width on the label object even if it was empty and invisible. It''s now fixed. Thanks alot Prakash for the tip. Best Regards Tommy

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.

;