WindowMovedOrResized Event

IntelliCAD 11.1 Object Library
WindowMovedOrResized Event
See Also 
HWNDFrame
bMoved
Workspace Object : WindowMovedOrResized Event

Description

Occurs when window moved or resized.

Syntax

Visual Basic
Public Event WindowMovedOrResized( _
   ByVal HWNDFrame As Long, _
   ByVal bMoved As Boolean _
)

Parameters

HWNDFrame
bMoved

Example

The following example illustrates using the WindowMovedOrResized event with an Application object. To use the WindowMovedOrResized 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_WindowMovedOrResized(HWNDFrame, Moved)

     ' This example receives an Application WindowMovedOrResized event.

     ' This event occurs when an application, document, or workspace window is moved or resized.

     ' To fire this event:

     ' 1) Run init() function to initialize App variable.

     ' 2) Move or resize the application window.

     MsgBox "A window was moved or resized."

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.