Published · 2 min read

Introduction to User Interface

User Interface is the layer between the User and the Application that enables the user to interact with the application. User Interfaces are either Console ( CUI ) or Graphical ( GUI ).

User Interface is the layer between the User and the Application that enables the user to interact with the application. User Interfaces are either Console ( CUI) or Graphical ( GUI).

In a Console User Interface such as the one shown below, the user needs to use pre-defined commands to interact with the application. In general, the keyboard is used for input.

CUI

Unlike in a CUI, the user does not need to remember commands for interacting with the application, rather various controls are used for the same. Also, pointing devices such as the mouse are used along with the keyboard.

GUI

There are various types of controls to help us in enabling the User to interact with our application. Below is an image showing a few of the pre-defined controls.

GUI

Only container controls can exist on their own. All other controls have to reside inside containers.

Note: A container can also contain another container.

In the previous image, the Window which contains all the controls viz Label, Button, Text Box, etc, is the container we call Windows Form. A Dialog box is a special type of Form that is used to group related controls. Typically, the dialog boxes are used to notify an event or error, ask for an input, etc.

GUI

Dialog boxes are of three types:-

Modal

A modal dialog box does not allow you to switch focus to another area of the application (unless it is closed). For Example, the Save As Dialog box in Paint.

GUI

Modeless

A modeless dialog box allows you to switch focus to another area of the application. For Example, the Find & Replace dialog box in Notepad.

GUI

System Modal

A system modal dialog box is a system wide modal dialog box which does not allow the focus to be switched to any other application.

GUI

Partho Sarathi

Partho Sarathi

Founder, Maxotek

Programming Basics

Our blog

Related posts

Tutorials, notes and news from Maxotek.

  • Digital logic gates

    Digital logic gates is an electronic component which results perticular ouput after implementing its logic on the input signals.

    Partho Sarathi

    Partho Sarathi

  • 64-Bit Computing

    Around 2003 the term 64-Bit computing was everywhere. Want to install Windows XP? Great! Do you want the 32-Bit disc or 64-Bit disc? Installing WinZip for your shiny new re-installed OS?

    Partho Sarathi

    Partho Sarathi

View all posts

See what Maxotek makes

Monitoring, conversion tools and more, built by the same people who wrote these posts.