User Interfaces, Debugging, MediaPlayer, Speech. User Interfaces How Not to Do It.

Slides:



Advertisements
Similar presentations
Getting Started with PowerPoint
Advertisements

Prof. Yitzchak Rosenthal
Creating Online Presentations. Creating a Presentation To create a presentation 1.Open PowerPoint. In the task pane under New select From Design Template,
Presented by Keystone Computer Concepts. Tip #1 SHOW THE DESKTOP When you have windows open and want to quickly get back to the desktop: click the vertical.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
DEVELOPING ICT SKILLS PART -TWO
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
FrontPage Express By John G. Summerville Ph.D.©, RN.
2-May-15 GUI Design. 2 HMI design There are entire college courses taught on HMI (Human-Machine Interface) design This is just a very brief presentation.
Chapter 6 Photoshop and ImageReady: Part II The Web Warrior Guide to Web Design Technologies.
Microsoft Word 2010 Lesson 1: Introduction to Word.
XP New Perspectives on Microsoft Access 2002 Tutorial 61 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
1 ADVANCED MICROSOFT POWERPOINT Lesson 5 – Using Advanced Text Features Microsoft Office 2003: Advanced.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
ABC’s of PowerPoint (Office 2007) Part 1: Basic Vocabulary Part 2: Cursors Part 3: Insert Your Text Part 4: Insert Your Pictures Part 5: Basic Tools &
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Microsoft ® Office PowerPoint ® 2003 Training Playing movies [Your company name] presents:
PowerPoint Lesson 2 Notes Working With Slides. Creating a New Presentation From a Theme 1.When preparing for a presentation, the best place to start is.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Access Tutorial 10 Automating Tasks with Macros
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
1 CA201 Word Application Increasing Efficiency Week # 13 By Tariq Ibn Aziz Dammam Community college.
PowerPoint Basics (for Macs) 1. Before you start your project, you need: Completed project storyboard. Files with images, sound, or video already saved.
Microsoft PowerPoint Getting Started Guide Prepared for Towson University Dr. Jeff M. Kenton Amy Chase Martin 2007.
CIS—100 Chapter 15—Windows Vista 1. Parts of a Window 2.
Creating a Web Site to Gather Data and Conduct Research.
Dreamweaver – Dreamweaver Extras Web Design Section 8-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
Exploring Your Desktop To run presentation, please click on bottom arrow to right to change to next frame.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Program Design and Coding
Photo Story 3 Importing Pictures. When you create a new Photo Story, the first thing that you will do is import pictures. You can import pictures from.
COMPREHENSIVE Access Tutorial 6 Using Form Tools and Creating Custom Forms.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Copyright © Curt Hill More Components Varying the input of Dev-C++ Windows Programs.
More User Interface Controls User interface controls are located in the toolbox. Click the +/- signs to open/ close the different tabs of the tollbox.
line.net/ okpop.com/bar elythereflashin dex.html.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Links take you to…  Different slides in your presentation  A different PowerPoint presentation  Any program - (Word can be used for example to complete.
The Excel model for information processing The Excel model is a grid of cells in which items of information are stored and processed. Any information that.
 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.
Office Management Tool - II Institute of Management Sciences Muhammad Shahzad Ali Lec 8: Introduction to MS - PROJECT L E C T U R E 8 INTRODUCTION TO MS.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
MICROSOFT WORD PRESENTATION. Word Processing  Software that is designed for the entry, editing, and printing of documents.  Windows Version = Microsoft.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Lesson 4 Word Lesson 4 presentation  Switch between different views in a document  Adjust page margins settings  Set paragraph alignment, indentation,
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Today We Will Review: Operating Systems (Windows) (week 3 & 4) Starting up MS Windows Desktop and its contents Functions of the desktop components Brain.
Digital Literacy Introduction to Computers Unit 1, Lesson 1.
Building a User Interface with Forms
How to design a Windows Forms application
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
European Computer Driving Licence
Presentation transcript:

User Interfaces, Debugging, MediaPlayer, Speech

User Interfaces How Not to Do It

Better User Interface

Instant Response For calculators and games, the user interface becomes more intuitive if your code responds immediately (without waiting for a button click). That is, the bottom example is better than the top one.

Caution This is great for calculators and games—the state of the controls and displays are always in agreement. However, for data entry forms, you generally do not want instant action. The user should be able to set the values of every control carefully, and even change his mind if needed. When the user is ready to submit the data, he clicks a button. If it is a major step (like spending a lot of money), displaying a confirmation (“Are you sure?”) message box can be useful. Just remember that this would be highly annoying in a calculator or game.

Default Values

Fewer Buttons!

Use the Right Controls

Don’t waste space! Many computer users multi-task; they don’t want your program taking up all of the monitor space. Make your forms big enough to be easy to read and to use, but no bigger. Don’t let the huge monitors in G610 fool you; your programs should function well on much smaller monitors.

Take it easy on the graphics!

Additional Guidelines Don’t make fields required if they’re not! Use VB’s alignment tools to make your form look organized and attractive. Set your form’s Text property to something relevant. Not only does the Text property appear at the top of the form, it also appears in the Windows taskbar. Make sure that it doesn’t still say “Form1.”

ToolTips ToolTips are small popup messages that appear when you hover the mouse over a control. They can provide quick help to the user without taking up additional window space, and without annoying the power user. To add ToolTips to your program: 1.Find the ToolTip control in the Toolbox. 2.Add one to your form. 3.Now, look at the properties for your other controls—there should be a new property called “ToolTip on ToolTip1”. 4.Enter the ToolTip text that you want displayed into this property. 5.You can also set or change a ToolTip at runtime by calling the SetToolTip procedure, like this: ToolTip1.SetToolTip(Button1, “This is Button1!”) 6.You can adjust the delay before ToolTips are shown as a property of the ToolTip control.

Tab Order and Shortcut Keys Data-entry typists hate to take their fingers off of the keyboard to use a mouse. If you think that your program may be used to enter a lot of typed data, have mercy on the typists and assign an appropriate tab order and use shortcut keys. Tab order indicates how focus (the cursor) moves between the controls on a form. Shortcut keys are used to immediately jump to a particular control by typing a special key combination.

Tab Order If you order something online, you will likely have to enter your name, address, credit card number, and maybe some other information. If the form has been well designed, you will be able to jump from one control (textbox, combobox, numericupdown) to the next using the Tab key on the keyboard. It will be most useful if the jumping is logical; typically, this means left-to-right and top-to-bottom. By default, the tab order in a VB form will be the order in which the controls were added to the form. However, this isn’t usually the best order, logically. Fortunately, VB allows you to assign the tab order; it’s fast and easy!

Assigning the Tab Order Once you have the form nicely laid out, you can assign the tab order. To do this, go to the View menu, and select Tab Order. Small white-on-blue numbers will appear on the controls on the form, as shown in the picture at right. Click on the controls in the desired order (left-to- right, top-to-bottom). Include the labels, even though they never receive focus (the cursor). This facilitates making keyboard shortcuts. Hit Escape to exit Tab Order view. Your new tab order will be saved. You can always go back and change it if you made a mistake or if you add new controls.

Keyboard Shortcuts A keyboard shortcut is assigned by adding an ampersand (&) to the text of a control. For controls like CheckBoxes and RadioButtons which have fixed Text properties, you can put the ampersand right in the text. At runtime, you won’t see the “&”, but the letter following it will be underlined. In the properties window: “&State” On the form at runtime: “State” When the form has focus, typing Alt+S will cause focus to jump to the State combo box.

Keyboard Shortcuts (continued) For controls that do not have fixed Text properties, like TextBoxes and ComboBoxes, put the & in the label which immediately precedes the control in the tab order. For example, if you have a First Name label (Label1) with tab order 0 next to a TextBox for the user to enter her First Name (with tab order 1), set the text property of the LABEL as follows: Label1.Text = “&First Name” (this can be done at design time or run time. When the user types Alt+F, Windows will try to send focus to the label, but since labels can’t receive focus, it will move onto the next control in the tab order, the TextBox.

Docking Aside from forms and the SplitPanel control, VB generally does not allow users to adjust the size of the controls on a form. However, there are some controls that users sometimes need or want to resize. Examples: – DataGridView: Make it bigger to see more fields or records. – PictureBox: Make it bigger to see more of a picture (in Normal or Centered SizeMode) or to zoom in on it (in Zoom SizeMode). – TextBox: For writing a longer essay. – WebBrowser: For seeing more of a web page on the screen. You can give the user this option by “docking” the control to the entire form In designing a VB form, you can “Dock” controls to the form. VB allows for docking to any of the four sides of the form, but docking to the entire form works best. To dock a control to the form, go to the Dock property of the form, click the down arrow, and select the big square in the middle.

Docking Once the control is docked to the form, it will always be the same size as the form. Since the user can resize the form, this means she can resize the control as well. If you do this with PictureBoxes, you will probably want to set the SizeMode property to Zoom.

Anchor An alternative to docking is to “anchor” a control to one or more sides of a form. Anchor is a property of a control; try the different settings and see how they affect the control’s behavior when the form is resized. Anchor is a good way to keep controls visible and of a useful size when resizing a form, both at design and run time.

Text-to-Speech See the sample program.

The MediaPlayer Control Adding to the Toolbox: – Right-click on a section of the Toolbox and select “Choose Items…” – When the “Choose Toolbox Items” dialog appears, switch to the “COM Components” tab. – Scroll down to find “Windows Media Player.” – Check the box next to it and click “OK” at the bottom. – The Media Player should now be in your toolbox.

Using the Media Player Add a MediaPlayer control to a form. By default, VB gives it the name “AxWindowsMediaPlayer1”. Change it! You select the file to play, either locally or from the web, using the URL property. To access the functions of the media player (play, pause, stop, etc.), use the CtlControls property. Example code on the next slide.

MediaPlayer Code

Play System Sound