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 : Thursday, March 5, 2009 11:28:57 AM(UTC)

lili  
lili

Groups: Registered
Posts: 23


I implemented a custom annotation using 14.5, and I hided the default handles.It works well.
But after I upgraded to 14.5.0.77, I loaded image with annotations I did before, then I selected the custom annotation, all the default handles became visible. Simplely changed ltann14N.dll to old one. everything is fine.
I was assuming that mybe I was wrong to hide the default handle.
I am using L_AnnEnumerateHandles and callback function to set the visible flag of default handle to FALSE.

Thanks.

Lei Ma
 

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 : Monday, March 9, 2009 9:52:36 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 367

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

Hello Lei Ma,

Your dlls are slightly out of date. Please retry to see if this issue exists in the latest dlls. Please send an email to support@leadtools.com including the following information:
1. The company you work for
2. The LEADTOOLS serial number(s) you own (if you are evaluating, just say so)
3. The name(s) of the developer(s) using the serial number
4. A link to this forum post

Are you setting the bVisible property of the ANNHANDLE structure to false AND adding ANNHANDLE_VISIBLE to uFlags to make sure this property is used?
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Tuesday, March 10, 2009 6:00:57 AM(UTC)

lili  
lili

Groups: Registered
Posts: 23


Hi,

Ok, I will send email to support@leadtools.com.
>Are you setting the bVisible property of the ANNHANDLE structure to false AND adding ANNHANDLE_VISIBLE to uFlags to make sure this property is used?
For default handle, How can I add ANNHANDLE_VISIBLE to uFlags to make sure this property is used?

Thanks

Lei Ma
 
#4 Posted : Wednesday, March 11, 2009 12:48:04 PM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 367

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

Here is the example in the help file for using L_AnnEnumerateHandles:

// This example enumerates through all handles of an object,
// changing the predefined handles to blue squares
// and the user handles to red circles
L_INT L_EXPORT EXT_CALLBACK ColorNodesCallback(HANNOBJECT hObject, pANNHANDLEINFO pHandleInfo, L_VOID L_FAR * pUserData)
{
pHandleInfo->bVisible = TRUE;
if (pHandleInfo->nType == ANNHANDLETYPE_DEFAULT_HANDLE)
{
pHandleInfo->nShape = ANNHANDLE_SHAPE_SQUARE;
pHandleInfo->crFill = RGB(0,0,255);
}
else
{
pHandleInfo->nShape = ANNHANDLE_SHAPE_CIRCLE;
pHandleInfo->crFill = RGB(0,255,0);
}
return SUCCESS_CHANGE;
}

L_VOID ExampleAnnEnumerateHandles(HANNOBJECT hObject)
{
L_AnnEnumerateHandles(hObject, ColorNodesCallback, NULL);

}


Changing "pHandleInfo->bVisible = TRUE;" to "pHandleInfo->bVisible = FALSE;" should hide the handles.

If this does not appear to be the case, please send me a small sample project to I can take a look at your code.

NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB. If it is larger, please send an email to support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.

If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to support@leadtools.com and make sure that you include a link to this forum post.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#5 Posted : Thursday, March 12, 2009 3:39:03 AM(UTC)

lili  
lili

Groups: Registered
Posts: 23


Hi,

What I did is exactly the same as yours.
When I use 14.5, there is no problem.
But after I upgraded Leadtools to 14.5.0.77.
The problem I said happened.
I will try the latest one you gave me.

Thanks.

Lei Ma
 
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-2020, Yet Another Forum.NET
This page was generated in 0.161 seconds.