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?
ADAdministrator Syncfusion Team April 4, 2005 10:31 AM
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.
TNTommy NormanApril 5, 2005 05:20 AM
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.