60002025 We would like to be able to detect when a user is pressing a mouse button over the vdScreenBlock of the document rendering contol window

Article 60002025
Type Wish
Product Engine
Version 6025
Date Added 8/22/2013 12:00:00 AM
Fixed (8/23/2013 12:00:00 AM)
Submitted by Dobriyan Benov

Summary

We would like to be able to detect when a user is pressing a mouse button over the vdScreenBlock of the document rendering contol window.

Solution

In version 6026 a new method HitTest was added in vdScreenBlock object.

public bool HitTest(vdDocument doc, Point pt)
This method returns true if this Block's drawing items pass through the given location relative to the document rendering contol window.
"doc": A vdDocument object where this vdScreenBlock is rendered in.
"pt": A point in pixels relative to the passed document rendering contol window.

Send comments on this topic.