IntelliCAD 11.1 Object Library | |
WindowChanged Event | |
See Also |
- vicWindowState
- The state of the window using one of the following values.
Application Object : WindowChanged Event |
Description
Syntax
Visual Basic |
---|
Public Event WindowChanged( _ ByVal vicWindowState As WindowState _ ) |
Parameters
- vicWindowState
The state of the window using one of the following values.Value Description vicWSMaximized Maximized window (value = 3). vicWSMinimized Minimized window (value = 1). vicWSRestored Restored window (value = 0).
Example
The following example illustrates using the WindowChanged event with an Application object. To use the WindowChanged event with a Document or 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_WindowChanged(WindowState)
' This example receives an Application WindowChanged event.
' This event occurs when a change is made to the state of an application, document, or workspace window.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Restore, minimize, or maximize a window.
MsgBox "The state of a window has changed."
End Sub