LEADTOOLS Support
Document
Document SDK Questions
HOW TO: Customize Default Annotation Toolbar
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Questions
HOW TO: Customize Default Annotation Toolbar
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.