How detecting intersection between two Diagrams with DiagramStudio?

Hello Every body
How can I decide if there is an intersection area between two diagramControls?
Something like this: Intersection(Diag1,Diag2)=true. Both belong to a common AtDiagram component.
Please Help,

This is not a feature request. Moving it to proper category.

There is no built-in method for that. There is a PointInControl method, but that checks if a point is in a specific control, not a region.

One thing you can do is call GetBlockClipRegion (a protected method) to get a HRGN handle to the block. Then you can use CombineRgn method and check if the regions intersect.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.