Object Model Reference : Classes : D : Document : Properties : Document.ActiveWindow |
Property ActiveWindow As Window
Member of Document
The ActiveWindow property represents the active window.
The ActiveWindow property returns a read-only value.
The following VBA example sets the width of the active document window to half the size of the main application window and then sets its zoom factor to 200%.
Sub Test() |
Dim w As Window |
Set w = ActiveDocument.ActiveWindow |
w.WindowState = cdrWindowNormal |
w.Width = AppWindow.Width / 2 |
w.ActiveView.Zoom = 200 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.