Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, September 19, 2023 8:06:33 AM(UTC)
Satish Trivedi

Groups: Registered
Posts: 5


How to register double Click Event on annotation (Hilite Object) – page level double click will keep on checking on the all points of the page. Is it possible to do this with register click event on specific annotation?

Also could you please suggest how to know in the document for this kind of properties e.Bd
Below reference link we have used while doing this code:-
https://www.leadtools.co...npointerdoubleclick.html

Sample code to register DoubleClickEvent

if(documentViewer !== undefined)
{
documentViewer.annotations.automationControl.add_automationDoubleClick((sender, e) =>
{
if(e.Bd === true)
{
alert("Double click");
}
});
}

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, September 19, 2023 1:01:10 PM(UTC)

Nick  
Nick

Groups: Registered, Tech Support, Administrators
Posts: 163

Was thanked: 9 time(s) in 9 post(s)

Click events are not raised for specific annotations. If you have the coordinates on the page for where the double-click event occurred, you can pass this to the AnnContainer.hitTestPoint() function.
https://www.leadtools.co...tainer-hittestpoint.html

This function will return an array of AnnObjects for any which are underneath the tested point, which you can pass to and handle in your application logic.
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.133 seconds.