170 likes | 187 Views
Enhancing the Graphical User Interface. Multiple Forms, Controls, and Menus. Objectives. 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
E N D
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus
Objectives 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
Objectives 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
Designing the GUI Interface Styles • Multiple Document Interface (MDI) • Single Document Interface (SDI) • Explorer-style interface
Multiple Document Interface Parent Form Child Form Child Form
Single Document Interface Independent Form Independent Form
Explorer-style interface Left pane browsing controls Right pane detailed view
Five 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
Principle 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.
Principle 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
Principle 3: Show and Use Informative 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
Principle 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
Principle 5: Let the User Control the 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
Form Designer Grid See Appendix C - The Toolbox, Toolbars, and Controls Twips - screen-independent unit Pixels - picture elements, screen-dependent unit
The 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
GUI Enhancement with the Learning 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