LEADTOOLS JavaScript (Leadtools.Annotations.Automation)
LEAD Technologies, Inc

CurrentDesignerChanged Event

Occurs when the current designer has been changed.
Syntax
add_currentDesignerChanged(function(sender, e))
remove_currentDesignerChanged(function(sender, e))

Remarks
At any given time, the AnnAutomation object can have a working AnnDesigner-derived object as follows:
Designer Base Class Notes
null

(Design and Run user mode) No designer is currently active.

AnnDrawDesigner

(Design user mode) The AnnAutomation is currently drawing or about to draw a new object.

AnnEditDesigner

(Design user mode) One or more objects are currently being edited or are about to be edited.

AnnRunDesigner

(Run user mode) An object is currently being run or about to be run.

This event allows you to hook into the current designer and change or monitor its status while it is running. For example, you can determine if CurrentDesigner is an AnnDrawDesigner derived class and subscribe to the AnnDrawDesigner.Draw event and so forth.

Alternatively, you can subscribe to this AnnAutomation's object Draw, Edit or Run events directly. This object will hook these events to the corresponding designer event automatically.

Event Data
Parameter Type Description
sender 'var' The source of the event.
e LeadEventArgs The event data.
See Also

Reference

AnnAutomation Object
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.