GUI Widgets Jeff Offutt SWE 432 Design and Implementation of Software for the Web.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Designing a Graphical User Interface (GUI) 10 IST – Topic 6.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Chapter 4: Working with Windows Types of Windows –Program Windows –Message Boxes –Dialog Boxes Elements of a Window –Window Panes –Scroll Bars –Menus –Tool.
Basic Editing Lesson 2- Part 2. Navigating and Searching Through a Document Find command options, the mouse, scroll bars, and various keystroke and keyboard.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Adobe Forms THE FORM ELEMENT PANEL. Creating a form using the Adobe FormsCentral is a quick and easy way to distribute a variety of forms including surveys.
CST JavaScript Validating Form Data with JavaScript.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
MS FrontPage 2: Developing a web site for the Sunny Morning Products Yong Choi CSU Bakersfield.
Forms and Form Controls Chapter What is a Form?
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
1 Access Lesson 1 Microsoft Access Basics Microsoft Office 2010 Introductory.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Java Software Solutions Lewis and Loftus Chapter 10 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphical User Interfaces --
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Designing Interface Components. Components Navigation components - the user uses these components to give instructions. Input – Components that are used.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
12.1 CSC 123 Systems Analysis & Design Part IV: The Essentials of Design Chapter 12 Designing Effective Input.
Basic Editing Lesson 2.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
HTML Forms A Preliminary Step into Dynamic Web Fred Durao
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 1: Starting with Microsoft.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
MS-WORD MS-Word is a word processing software. it helps you to create letters, memo, reports etc. HOW TO OPEN WORD click start menu button write Ms-word.
CHAPTER:07 JAVA IDE PROGRAMMING-II Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Basic Editing Lesson 2.
By Felixberto Dominic B. Eruela.  Using a computer to create, edit, and print documents. Of all computer applications, word processing is the most common.
William H. Bowers – Using Controls Cooper 26.
Web Design - Forms. Forms Forms are everywhere on the Internet – Feedback Forms – Order Forms – Registration Forms – Surveys – Etc We will design forms...
User Interface Components Lecture # 5 From: interface-elements.html.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
 Start Microsoft Word from the icon or shortcut for the application. This is usually accessible from the Start Button. Then go to Programs, then Microsoft.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Creating User Interfaces Chapter 13 CSCI CSCI 1302 – Creating User Interfaces2 Outline Introduction Common Features of Swing GUI Components Buttons.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
HTML Creating Forms on a Web Page. 2 Objectives  Discuss the process of creating a form  Distinguish between data input controls and text input controls.
HTML Forms.
Windows 95/NT/XP. What is Windows 95/NT/XP n A program that sets up an environment for you to work in on your computer, based on colorful pictures (icons)
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
CMPF124 Personal Productivity With Information Technology Chapter 1 – Part 2 Introduction to Windows Operating Systems Manipulating Windows GUI CMPF 124.
1 HTML Forms
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
GUI Controls for Input Design Introduction –Most new applications being developed today include a GUI. This approach is influenced by a new trend in.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Chapter 5 Validating Form Data with JavaScript
Topics Graphical User Interfaces Using the tkinter Module
Human Computer Interaction Lecture 07 The Interaction
User Interface Components
An Introduction to Computers and Visual Basic
An Introduction to Computers and Visual Basic
Chap 7. Building Java Graphical User Interfaces
Software Usability and Design
Graphical User Interfaces -- Introduction
Basic editing Word 2016.
An Introduction to Computers and Visual Basic
Presentation transcript:

GUI Widgets Jeff Offutt SWE 432 Design and Implementation of Software for the Web

10/11/2015© Offutt, Widget Terms Screen : Entire display area Pixel : Each dot on the screen Bitmapped : Each pixel can be controlled –Typical: 256 X 256 –Workstation 1000 X 1000 Windows : Areas of display. Each window is usually a process Widget : Window with specialized functions

10/11/2015© Offutt, Widget History First generation : Put characters on screen Second generation : Put text and pictures on screen Now : Put widgets on screen Widget: A building block for an interface. Includes characters, text, pictures, Includes characters, text, pictures, and other elements. and other elements.

10/11/2015© Offutt, Widgets Label Events Form List Scroll Bar Push Button Radio Box Dialog Text Box Pull-down Menu Menu Bars

10/11/2015© Offutt, WIDGET GUIDELINES Label Use for simple feedback Often combined with other widgets Simple text No events

10/11/2015© Offutt, An event is an interaction with a GUI that can create a function call (callback) –Moving onto a widget –Moving off of a widget –Clicking on a widget (or even “button down” and “button up”) Widget Guidelines Events

10/11/2015© Offutt, Widget Guidelines Form A parent of other widgets Use when a set of widgets needs to be aggregated No callbacks

10/11/2015© Offutt, Widget Guidelines List Use as a menu Sometimes called picklists, list boxes and listviews All the menu guidelines should apply here Sometimes text only, sometimes text + icons

10/11/2015© Offutt, Use when list or text is longer than will fit in the window Better to expand the window, if possible Scrollbars require mixing fine motor control (holding a button on a tiny icon) with large motor control (moving your arm) Widget Guidelines Scroll Bar Vertical Horizontal

10/11/2015© Offutt, Widget Guidelines Push Button Used to activate a particular action This is usually unrecoverable... do not use in dangerous situations Usually offers no feedback Label Parent Callback

10/11/2015© Offutt, Widget Guidelines Radio Box Selects one from of a set of mutually exclusive options Actually a specialized menu (single-selection) –Collection of checkboxes Uses –set some state in system –set options for customization 3 – 8 options Originally diamonds, MS changed to circles Very fast, but uses a lot of screen space

10/11/2015© Offutt, Widget Guidelines Radio Box (2) Small group of mutually exclusive choices If crowded, use a drop-down list (slower) Same as single selection lists Printer A Printer B Printer C

10/11/2015© Jeff Offutt, Pull-down Menus Vs. Radio Buttons They both accomplish the same thing Radio buttons are fixed on the screen, Pull-down menus show up on-demand Radio buttons are faster and more convenient Use pull-down instead of radio buttons when: –More than 5 choices –Screen is crowded –Choices available depend on other selections (the choices change dynamically)

10/11/2015© Offutt, Widget Guidelines Dialog Make sure that labels are clear and unambiguous Yes/No is sometimes not as clear as Yes/Cancel The user must know what will happen when a choice is made Built-in specialized dialog boxes are often convenient, but sometimes not exactly what is needed Are you sure? YesCancel

10/11/2015© Offutt, Widget Guidelines Text Box Appropriate size (vertically and horizontally) Do not use when it is possible to select This is the most flexible but slowest and most error-prone selection method –Also can present security vulnerabilities Operations: insert, delete, copy, cut, paste, select Text boxes must be validated –Active: Invalid keystrokes are ignored –Passive: String is checked after user enters data

10/11/2015© Offutt, Widget Guidelines Pull-Down Menu Use as a menu Can be longer if there is a clear ordering, or searching is easy (states, courses,...) Can be longer if list is fixed and syntax must be perfect –That is, we can trade off searching time for errors on data entry.

10/11/2015© Offutt, Widget Guidelines Menu Bars (or ButCons) Used for permanent menus Put choices that should always be available: –Crucial choices (Exit, Help,...) –Most often used choices Save Print Exit Help

10/11/2015© Offutt, Widget Guidelines Bound Value – Scale Use when user needs to select a value from a large range Often combined with text selection for flexibility 0100 __ Scale

10/11/2015© Offutt, Widget Guidelines Spinner Use when user needs to select a value from a range The value has to be precise, but the value is fairly large –Age –Weight –Day of year Also can be combined with text selection for flexibility Edit window can choose to allow arbitrary (invalid) inputs 41 Age

10/11/2015© Offutt, HTML Widgets – Form Elements 1.Textboxes 1.Password boxes 2.Text areas 2.Radio buttons 3.Checkboxes 4.Menus 5.Buttons 1.Submit 2.Reset 6.Tab order 7.Keyboard shortcuts Next 7 slides …

10/11/2015© Offutt, HTML Text Boxes 3 chars max 3 chars wide Default value Parameter name Text box default

10/11/2015© Offutt, HTML Radio Buttons Default Value when Name is “Java” Parameter name Only one can be checked

10/11/2015© Offutt, HTML Checkboxes Value when Name is “Java” Parameter name Multiple boxes can be checked

10/11/2015© Offutt, HTML Menus CS CPE ECE EE SWE SYST Other Parameter name Default

10/11/2015© Offutt, HTML Buttons Allows multiple submit buttons Parameter name

10/11/2015© Offutt, HTML Tab Order and Keyboard Shortcuts

10/11/2015© Offutt, Setting Focus HTML does not have any facilities for setting the initial focus into a field in a form Javascript can be used … function setFocus() { document.focus.firstName.focus(); } First name: Last name: