LEADTOOLS Support
Document
Document SDK Questions
How can i define the item in rubber stamp ??
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, February 15, 2006 9:10:24 PM(UTC)
Groups: Registered
Posts: 9
I am using AnnAutomationManager to add an xp style toolbar for annotation. I want to know that if i can change the selected item of the rubber stamp? For example, can i add a new item called "correction" when selecting rubber stamp?
Also, for the rubber stamp, there are several items for selection. Can i define which item to be displayed and which item to be disabled ?
I am using leadtools 14.5 and vb.net.
Thanks.
#2
Posted
:
Sunday, February 19, 2006 11:46:03 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
To set the active rubber stamp
object in the toolbar, you can use the
AnnAutomationManager.CurrentRubberStampType Property and set it to the
object that you want to be drawn on the current active AnnAutomation:
+------------------------+
AnnAutomationManager.CurrentRubberStampType = AnnRubberStampType.Void
+------------------------+
You can change the context menu
for the rubber stamp toolbar button by using the
AnnAutomationManager.RubberStampButtonDropDownContextMenu property.
Also, you can use this property to change disable or enable a rubber
stamp button in the context menu.
For Example, the following code shows how to disable all buttons the rubber stamp context menu in the toolbar:
+---------------------------------+
Dim item As MenuItem
For Each item In manager.RubberStampButtonDropDownContextMenu.MenuItems
If (String.Compare(item.Text, "Void", False) = 0) Then
item.Enabled = False
End If
Next
+---------------------------------+
For more information about the
AnnRubberStampObject, please refer to the LEADTOOLS DotNet
Documentation and read the following topics:
- AnnAutomationManager.RubberStampButtonDropDownContextMenu Property
- AnnRubberStampObject.SetUseNewPicture Method
- AnnAutomationManager.CurrentRubberStampType Property
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Document
Document SDK Questions
How can i define the item in rubber stamp ??
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.