enhancing the graphical user interface multiple forms, controls, and menus

17
Enhancing the Graph Enhancing the Graph ical User Interface ical User Interface Multiple Forms, Controls, Multiple Forms, Controls, and Menus and Menus

Upload: gwendolyn-cummings

Post on 01-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Enhancing the Graphical Enhancing the Graphical User InterfaceUser Interface

Multiple Forms, Controls, and MenMultiple Forms, Controls, and Menusus

Page 2: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

ObjectivesObjectives

1. How to design a good user interface

2. Use Toolbox tools to create and modify forms and controls

3. Multiple Document Interface (MDI) vs. Single Document Interface (SDI) vs. Explorer-style interface

4. Create input features such as text boxes, labels and command buttons

Page 3: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

ObjectivesObjectives

5. Include graphics using picture box or image controls

6. Create a Graphical User Interface with menus

7. Include file management features using drive list boxes, directory list boxes and file list boxes

8. Include frames, check boxes, option buttons, combo boxes, and list boxes

Page 4: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Designing the GUIDesigning the GUI

Interface Styles• Multiple Document Interface (MDI)

• Single Document Interface (SDI)

• Explorer-style interface

Page 5: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Multiple Document InterfaceMultiple Document Interface

Parent Form

Child Form

Child Form

Page 6: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Single Document InterfaceSingle Document Interface

Independent Form

Independent Form

Page 7: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Explorer-style interfaceExplorer-style interface

Left pane browsing controls

Right pane detailed view

Page 8: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Five Principles of GUI DesignFive Principles of GUI Design

Principle 1: Know Your End User

Principle 2: Be Consistent

Principle 3: Show and Use Informative Graphics and Messages

Principle 4: Keep It Simple

Principle 5: Let the User Control the Application

Page 9: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Principle 1: Know Your End UserPrinciple 1: Know Your End User

• Who is my audience?

• Will be used by children, adults or both?

• What is reading level of users?

• If retired adults, use large font.

• Write down as much as you know about your end user before beginning design.

Page 10: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Principle 2: Be ConsistentPrinciple 2: Be Consistent

• Use Windows Guidelines - Close button• Windows standard fonts - Arial, Times New

Roman, and MS Sans Serif• Establish font color and size, background color,

and foreground color• Use menus and standard menu positions• See Appendix D - Standard Menus for Windows

Applications

Page 11: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Principle 3: Show and Use Principle 3: Show and Use Informative Graphics and MessagesInformative Graphics and Messages

• Show user, instead of telling

• Use informative graphics, instead of merely creative graphics

• Graphics especially useful for international applications

• GUI analogy - dashboard of car

• Use symbols, not words

Page 12: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Principle 4: Keep It SimplePrinciple 4: Keep It Simple

• KISS “Keep it simple sweetie”

• If interface looks difficult, it will be hard to use

• Use several forms instead of a single cluttered form

• Group items, use tabbed format

• Set default options for user

Page 13: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Principle 5: Let the User Control Principle 5: Let the User Control the Applicationthe Application

• Conversation between computer and end user

• Let end user decide tasks and order

• Programmer controls computer’s responses to end user

• Visual Basic is event-driven so this is relatively easy to achieve

Page 14: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

Form Designer GridForm Designer Grid

Twips - screen-independent unit

Pixels - picture elements, screen-dependent unit

See Appendix C - The Toolbox, Toolbars, and Controls

Page 15: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

The Learning Arithmetic ProjectThe Learning Arithmetic Project

• Game to practice addition, subtraction, multiplication and division skills

• Numbers from 0 to 9• Child in grade 3, 4 or 5• Give feedback to child• Use Window Calculator

accessory as model

Page 16: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

GUI Enhancement with the GUI Enhancement with the Learning Arithmetic ProjectLearning Arithmetic Project

Hands-On Exercise 1 (p.163-174)– Use the Application Wizard– Save your forms and project files– Modify the Splash form– Add the Calculator form– Add the Bears form– Write the Module code– Run and test the project– Debug your project– Print your project and exit

Page 17: Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus

End of LectureEnd of Lecture