Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –

Slides:



Advertisements
Similar presentations
Chapter 16 Graphical User Interfaces
Advertisements

Information System Design Lab 5&6. User Interface Design.
Microsoft® Small Basic
Chapter 8 Improving the User Interface
Chapter 16 Graphical User Interfaces John Keyser’s Modifications of Slides by Bjarne Stroustrup
AA high level programming language. IIt is created by Microsoft. UUses a graphical environment called the Integrated Development Environment (IDE).
Microsoft® Small Basic
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Mark Dixon Page 1 04 – Database Design: Forms. Mark Dixon Page 2 Session Aims & Objectives Aims –To allow easier data entry using forms Objectives, by.
Automating Tasks With Macros
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Slide Transitions Slide Show, Slide Transition opens Slide Transition task pane Practice each option setting to select the transition style, its speed,
MCT260-Operating Systems I Operating Systems I Interfaces to Operating Systems.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
Module 3 Productivity Programs Common Features and Commands Microsoft Office 2007.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Not in Text CP212 Winter No VBA Required “Regular” Programming traditional programming is sequential in nature o one command executed after another.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
How computers work Learning objective 2: Explain the four basic functions of a computer.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
11.10 Human Computer Interface www. ICT-Teacher.com.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Graphical User Interfaces Tonga Institute of Higher Education.
Introduction to Windows Programming
JavaScript - A Web Script Language Fred Durao
3461 Model-View Controller Advanced GUI concepts.
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
Chapter 2 – Introduction to the Visual Studio .NET IDE
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Event Handling. Objectives Using event handlers Simulating events Using event-related methods.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
2c – Textboxes and Buttons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Reading comprehension exercise using PowerPoint. Question Slides 1.Start a new PowerPoint presentation with 4 slides on it. 2.On Slides 2, insert the.
UFCFY5-30-1Multimedia Studio Scripting for Interactive Media Using Interface Fields to Receive and Display Data to the User.
Procedural programming Procedural programming is where you specify the steps required. You do this by making the program in steps. Procedural programming.
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
Topics Graphical User Interfaces Using the tkinter Module
11.10 Human Computer Interface
Event loops 16-Jun-18.
An Introduction to Computers and Visual Basic
Lesson 1: Buttons and Events – 12/18
Event loops.
GRAPHICAL USER INTERFACE
Event loops 17-Jan-19.
Event loops 17-Jan-19.
An Introduction to Computers and Visual Basic
Chapter 16 Graphical User Interfaces
Topics Graphical User Interfaces Using the tkinter Module
Chapter 16 Graphical User Interfaces
Event loops 8-Apr-19.
Tonga Institute of Higher Education
Event loops.
Chapter 16 Graphical User Interfaces
Event loops.
Event loops 19-Aug-19.
Presentation transcript:

Graphical User Interfaces A Quick Outlook

Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console – GUI

Interface Alternatives: Console Command line Interface Easier to use for certain operations/scenarios You enter input using either given as parameters during the startup or by some menus/options inside the application

Interface Alternatives : Console #runapp.exe param1 param2 >Hello User #Hello Console >Give me input: #`input` >Give more #`more input` >More #`even more input` >I SAID MORE INPUT #`Most input you can provide` >Press “return” to start computing your input >Wait for my answer “User” #waiting … >Your answer is : 3 >Bye “user”

GUI

Textbox 1 Textbox 2 Textbox 3 Submit Button

GUI Easier to use Supply input with keyboard and deliver with mouse Less text to explain what to do on screen

Common GUI Tasks Titles / Text – Names – Prompts – User instructions Fields / Dialog boxes – Input – Output Buttons – Let the user initiate actions – Let the user select among a set of alternatives e.g. yes/no, blue/green/red, etc.

Common GUI tasks (cont.) Display results – Shapes – Text and numbers Make a window – Style and color More advanced – Tracking the mouse – Dragging and dropping – Free-hand drawing

GUI From a programming point of view GUI is based on two techniques – Object-oriented programming For organizing program parts with common interfaces and common actions – Events For connecting an event (like a mouse click) with a program action

Object Oriented Programming and GUI Every button, text, label etc. is a class instance Actions are member functions Can create own class derivations and reuse them :

Events and GUI As mentioned earlier GUI programming is event based Clicking a button, entering text, keyboard press, mouse movement … Bind events to member functions => interactive GUI

GUI Enter text to textbox

GUI Press the send button and fire the “click” event

GUI The data in the textbox is read. Then added to the textbox above. Finally the event finishes by clearing the input box

What? How? We saw buttons, input boxes and an outbox in a window – How do we create a window? – How do we create buttons? – How do we create input and output textboxes? Click on a button and something happens – How do we program that action? – How do we connect our code to the button? You type something into a input box – How do we get that value into our code? – How do we clear the input of the box ? We saw output in the output box – How do we get the values there? Will see in the labs this week!

Console  GUI Mapping For each console query create new label/textbox pairs – Don’t try to take all inputs from a single textbox After all user “queries” are filled in create a single button to submit the data

References Based on Slides : Graphical User Interfaces by Bjarne Stroustrup