IntelliCAD 11.1 Object Library | |
AppDeactivate Event | |
See Also |
Application Object : AppDeactivate Event |
Description
Syntax
Visual Basic |
---|
Public Event AppDeactivate() |
Example
The following example illustrates using the AppDeactivate event with an Application object. To use the AppDeactivate event with a Workspace object, you do not need to initialize the App variable.
Public WithEvents App As Application
Sub init()
'To receive and handle events from IntelliCAD, first initialize the App variable.
Set App = ThisWorkspace.Application
End Sub
'Event handler
Private Sub App_AppDeactivate()
' This example receives an Application AppDeactivate event.
' This event occurs immediately before an application window or workspace is deactivated.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Deactivate an application window.
MsgBox "Application window is about to be deactivated."
End Sub