Newwindow

Type

Boolean

The Newwindow switch determines if certain PWB functions open a file in a new window or in the active window. The Newwindow switch provides the default state of the New Window check box in the Open File dialog box. This check box does not change the value of the Newwindow switch.

When Newwindow is set to yes, PWB behaves like a Multiple Document Interface (MDI) application. That is, when you open a new file, PWB opens a new window for the file, except in certain situations as noted below.

When Newwindow is set to no, PWB behaves like PWB 1.x. In this case, PWB opens files into the active window, creating a file history for that window. This mode is useful when working with large numbers of files.

Some functions use the Newwindow switch to determine if a new window is created when opening a file.

The following functions ignore the Newwindow switch, and either create a new window or open the file into the active window:

Function Creates a New Window

Mreplace No
Openfile Yes
Setfile No
Nextmsg No
Nextsearch No

When the active window is a PWB window, PWB always creates a new window. You cannot open a file into a PWB window.

Syntax

Newwindow:{ yes | no }

yes

Open a new window when a new file is opened. This setting makes PWB behave like other MDI applications such as Microsoft Word 5.5 and Microsoft Works.

no

Open files into the active window, adding the previous file to the window's file history. This setting makes PWB behave like PWB 1.x.

Default

Newwindow:yes

See

Exit, Mark, Mreplace, Newfile, Nextmsg, Nextsearch, Openfile, Setfile