LEADTOOLS Support
General
General Questions
Register Click Event on annotation (Hilite Object)
#1
Posted
:
Tuesday, September 19, 2023 8:06:33 AM(UTC)
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.htmlSample code to register DoubleClickEvent
if(documentViewer !== undefined)
{
documentViewer.annotations.automationControl.add_automationDoubleClick((sender, e) =>
{
if(e.Bd === true)
{
alert("Double click");
}
});
}
#2
Posted
:
Tuesday, September 19, 2023 1:01:10 PM(UTC)
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.htmlThis 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.
LEADTOOLS Support
General
General Questions
Register Click Event on annotation (Hilite Object)
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.