LEADTOOLS Support
Document
Document SDK Questions
Creating annotations programmatically using OCX
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, July 31, 2006 10:27:51 AM(UTC)
Groups: Registered
Posts: 1
Hi,
I am using LT13 OCX & VB6 and I need to create annotations programmatically.
Are there samples, etc. available ?
Thanks
#2
Posted
:
Wednesday, August 2, 2006 9:58:51 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You would use the AnnCreate method (Main Control) to create annotations programmatically. This method is documented in the help file with sample code but I have placed a code snippet below to show you the basics.
Dim hRectObject As Long
hRectObject = LEAD1.AnnCreate(ANNOBJECT_RECT, True, True)
LEAD1.AnnSetAutoDefaults hRectObject, 0
LEAD1.AnnDefine hRectObject, 10, 10, ANNDEFINE_BEGINSET
LEAD1.AnnDefine hRectObject, 40, 40, ANNDEFINE_END
LEADTOOLS Support
Document
Document SDK Questions
Creating annotations programmatically using OCX
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.