NewWindow Method [Visio 2003 SDK Documentation]
Opens a new Microsoft Office Visio window.
objRet = object**.NewWindow**()
objRet The new window to be opened.
object Required. An expression that returns a Window object.
Version added
2003
Remarks
Calling the NewWindow method is the equivalent of clicking New Window on the Window menu in the user interface. The NewWindow method works only on top-level mutliple-document interface (MDI) windows. The properties and caption of the new window are all determined by Visio, so the caller cannot specify any arguments to the NewWindow call. The new window's caption is the same as that of the existing one from which it was opened, but it is distinguished by a colon and a sequential number. For example, if the existing window is a drawing window that is captioned Drawing1, the new window is captioned Drawing1:2. In addition, the existing window's caption is changed to Drawing1:1.
The NewWindow method opens a new window of the same type as object. In other words, if object is a drawing window, calling NewWindow opens another drawing window, while if object is a ShapeSheet window, calling NewWindow opens another ShapeSheet window.
Note The NewWindow method is not available for the Microsoft Office Visio Drawing Control 2003.
Applies to | Window object
See Also | Address property | Follow method