10 Difference Between Single and Multiple Document Interface
10 Difference Between Single and Multiple Document Interface
(MDI vs SDI)
A Single Document Interface (SDI) and a Multiple Document Interface (MDI) are two
different approaches to designing graphical user interfaces for applications. These two
approaches offer unique ways of presenting and managing documents within an
application, each tailored to specific scenarios and user needs. Let us look at how they
differ from one another:
A window does not have a ‘’ background’’ or ‘’parent’’ window containing its menu or
toolbar; instead, each window contains its own menu or toolbar. There is no way to
open another document in the same application, the only way is to launch another
instance of the application and open another document.
Applications which allow the editing of more than one document at a time e.g. word
processors, may therefore give the user the impression that more than one instance of
an application is open. Notepad and WordPad are such applications in windows.
SDI can be more useful in cases where users switch more often between separate
application than among the windows of one application.
An MDI application has three kinds of windows: a frame window, an MDI client window,
as well as a number of child windows. The frame window is like the main window of the
application: it has a sizing border, a title bar, a window menu, a minimize button, and a
maximize button. The application must register a window class for the frame window
and provide a window procedure to support it.
One of the major drawbacks of MDI is that, MDI can make it more difficult to work with
several applications at once by restricting the ways in which windows from multiple
applications can be arranged together without obscuring each other.
BASIS OF
MDI SDI
COMPARISON
MDI is a type of graphic user interface SDI is a Graphic User Interface which
Description which is able to show more than a single is able to show one document at a
document at a time on the screen. time on the screen.
Child windows per documents are allowed One document per window is
Limits
in MDI. enforced in SDI.
MDI contains multiple documents which at SDI contains one window only at a
Operation
a time appear as child window. time.
Interface MDI supports many interfaces which SDI supports one interface which
PREPARED BY: AMMAR ALVI
means you can handle many applications means you can handle only one
at a time according to user’s requirement. application at a time.
Definition
SDI: Each document in SDI mode has its own independent window with
separate controls for each.
MDI: In MDI, all documents are contained within the same parent window.
This can help in efficient window management, especially when dealing with a
large number of documents.
User Experience
PREPARED BY: AMMAR ALVI
SDI: Each document window in SDI mode consumes its own system
resources, which can lead to higher memory and CPU usage when dealing
with multiple documents.
MDI: Since all documents share the same parent window, resource usage can
be more optimized, resulting in potentially lower memory and CPU
consumption.
Interface Complexity
SDI: Generally, has a simpler interface since each document has its own
window and controls.
MDI: Can be more complex due to the need for managing multiple documents
within the same parent window, including features like tabbed navigation or
document list panes.
Context Switching
MDI: Effective for multitasking scenarios, where users need to work with
multiple documents simultaneously.
Screen Space Usage
SDI: Can potentially use more screen space due to the presence of separate
windows for each document.
MDI: Utilizes screen space more efficiently, especially when handling multiple
documents, as they are contained within a single parent window.
Development Complexity
MDI: Requires more complex coding and design to manage child windows, document
interactions, and parent window features.