Annotation Toolbar

Show in webframe
Note: This topic is for Document/Medical only. LEADTOOLS provides a standard ToolBar control for creating an annotation toolbar. Beginning with LEADTOOLS Version 14.5 it is possible to choose between two different styles of the annotation toolbar: the Original style and the new XP style. Programmatically, set the UseXPStyleToolBar property to true to use the new XP style of toolbar. Set the UseXPStyleToolBar property to false to use the original style of toolbar. For more information, refer to New Annotation Features of Version 14.5. To create the toolbar call the CreateToolBar method after you finish setting up the automation objects inObjects, or call the CreateDefaultObjectsmethod. After the toolbar is created you can use the ToolBarButton property to edit the toolbar button control, the ToolBarImage property to get or set the image to be used on a toolbar button, and the ToolBarToolTipText property to get or set the text that appears as the ToolTip for a toolbar button.

To automatically hide the automation toolbar, switch the value of the UserMode property to Leadtools.Annotations.AnnUserMode. To display the toolbar, switch the value of the UserMode property to AnnUserMode.Design. Whenever the UserMode property is changed, the Leadtools.Annotations.AnnAutomationManager.UserModeChanged event is fired.

Use the CurrentObjectId property to get or set the current automation object id, which is the Id of the AnnAutomationObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar. The Leadtools.Annotations.AnnAutomationManager.CurrentObjectIdChanged event is fired when this property is changed.

Use the CurrentRubberStampType property to get or set the current automation rubber stamp object type, which is the Type of the AnnRubberStampObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar. The Leadtools.Annotations.AnnAutomationManager.CurrentRubberStampTypeChanged event is fired when this property is changed. Starting with Version 14.5 it is possible to choose between the original set of images and a new set of default images for the rubber stamps. In design mode of the automation, choose Annotations -> Behavior - Use New Rubber Stamp Pictures to toggle between the two sets of images. To change the style programmatically, Set the SetUseNewPicture property to true to use the new default picture for an AnnRubberStampObject annotation object. Use the GetUseNewPicture method to get a value that indicates whether the new default picture for an AnnRubberStampObject annotation object is to be used. For more information, refer to New Annotation Features of Version 14.5.

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.