Previous Document Next Document
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 code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.