Defining Single Document Interface (SDI) Behavior
By default, Uniface forms use a Multiple Document Interface (MDI), but it is possible to set window properties to force Single Document Interface (SDI) behavior.
Uniface forms of Window TypeNormal
or Primary
use a Multiple Document Interface (MDI), in which non-modal windows reside under a single parent window. Activating a another form maximizes its window and restores the original form window so that it is no longer maximized. This is the default behavior of Microsoft Windows, which manages the windows containing the Uniface forms.
A single document interface organizes individual windows so that they are handled separately by the operating system's window manager. Usually, each window is displayed as an individual entry in the task bar or task manager, and each window has its own menu and toolbar instead of using the menu and toolbar of a parent window.
To define a single document interface:
-
Define a form that will serve as the primary window.
When multiple instances of this form are running, the windows they run in are handled separately.
- Choose .
-
Set the Window Type to
Primary
.
- At the very least, select the Maximize property to ensure the form is maximized.
-
Define the Window Type property of any forms
that are activated from the primary form as
Secondary
.