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 : Wednesday, February 15, 2006 9:10:24 PM(UTC)
csyemily

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.

 

 

 

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 : Sunday, February 19, 2006 11:46:03 PM(UTC)
Maen Hasan

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