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



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, August 6, 2013 12:05:22 PM(UTC)


Groups: Manager, Tech Support, Administrators
Posts: 218

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

This sample VS 2010 project shows how to use the LEADTOOLS v18 .NET Libraries to allow a user to customize the default annotations toolbar by removing unwanted annotation objects.

It should be noted that it is possible for developers to create their own custom toolbars using the LEADTOOLS AnnAutomationManager’s toolbar in creating their own [custom] AnnAutomation objects, or developers can create their own toolbar (and buttons) to toggle the necessary CurrentObjectId when a different annotation is to be used.

This sample code could also illustrate how developer’s could allow their users to configure the specific annotations they want to see on a regular basis. If their users only use specific annotations, then they don’t necessarily have to see all the annotation all of the time.

In summary this project will be able to:
1.Load an Image
2.Create the default annotation toolbar
3.Allow the user to choose which buttons to keep on the toolbar (via the menu)
4.View the image in Run or Design mode to preview saved image
5.Realize the image and then save as "imagename_annotated"

The way the project customizes the toolbar is:
1. Creates the default toolbar (and all options are defaulted to checked)
2. If a menu item is clicked, it will dispose the toolbar, recreate the default toolbar and then cycle through the menu to see which drop down items are unchecked
3. If an item is unchecked, it will cycle through the toolbar until the name matches the text of the menu item and then it will remove that object and break out of the foreach loop
4. It then recreates the toolbar and displays it to the user

File Attachment(s):
CustomAnnotationsDemo.zip (65kb) downloaded 103 time(s).
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.


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.

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-2023, Yet Another Forum.NET
This page was generated in 0.049 seconds.