Implement User Input 98-362 Windows Development Fundamentals LESSON 2.4A.

Slides:



Advertisements
Similar presentations
Event handling and listeners What is an event? user actions and context event sources and listeners Why should my programs be event- driven? User interaction.
Advertisements

Computer and Communication Fundamental Basic web programming Lecture 8 Rina Zviel-Girshin.
CS7026 jQuery Events. What are Events?  jQuery is tailor-made to respond to events in an HTML page.  Events are actions that can be detected by your.
1 Fac.Scienze – Università di Trento Programmazione 2 - Marco Ronchetti Events Gestione degli eventi.
Microsoft® Small Basic
Typing & Hotkey Proficiency. Table of Contents Keyboard Hand Placement – Left Hand – Right Hand Different types of Keys – Control Keys – Function Keys.
Jan Event Handling Yangjun Chen Dept. Business Computing University of Winnipeg.
Tutorial 15 Working with the Event Model. XP Objectives Compare the IE and W3C event models Study how events propagate under both event models Write a.
Form’s Events ISYS 562. Form Events Opening & closing form:Open, Close, Load, Unload Moving to and from the form: Activate, deactivate Moving from control.
Events. Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime Outline.
Event Handling. In this class we will cover: Keyboard Events Mouse Events Focus Events Action Interface Multicasting.
XP Tutorial 8 New Perspectives on JavaScript, Comprehensive1 Working with the Event Model Creating a Drag-and-Drop Shopping Cart.
JavaScript Client Side scripting. Client-side Scripts Client-side scripts, which run on the user’s workstation can be used to: Validate user inputs entered.
Scripts  Director’s scripting language is called Lingo  Lingo can be used to offer your users navigational control of the order of the scenes of your.
MsgBox Function Displays one of Visual Basic’s predefined dialog boxes, which contains a message, one or more command buttons, and an icon After displaying.
Week 3 C For Win Lecture :.  Mouse Message  Keyboard Message.
Software Engineering1 The.NET Framework and the CLI 2D Graphics with GDI+ Visual Studio.NET 2008.
CS0004: Introduction to Programming Events. Review  Event Procedure  A set of instructions to be executed when a certain event happens.  Many event-driven.
CSCI 3327 Visual Basic Chapter 10: Windows Forms GUI: A Deeper Look UTPA – Fall 2011.
Lecture 4 Advanced Topics Devi, Erick, Reddy. » Declare dynamic component, an example: ˃Create a button Button newBtn = new Button(); ˃Create an array.
CSC 298 Windows Forms.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Typing Application Introducing Keyboard Events, Menus, Dialogs and the Dictionary.
Lecture Set 13 Drawing Mouse and Keyboard Events Part B – Mouse and Keyboard Events.
DOM Events. JS Events Outline About Events – Introduction – Registering events – Getting information from events Event order/phases – Preventing default.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 - Graphical User Interface Concepts: Part.
Timer, Animation Responding to Mouse & Keyboard Lab 7 7 McGraw-Hill© 2006 The McGraw-Hill Companies, Inc. All rights reserved.
CS350 – Windows Programming Formerly and more properly named: Event Driven Programming Dr. Randy Ribler.
COM148X1 Interactive Programming Lecture 7. Topics Today HCI Event Handling.
BIM211 – Visual Programming Interacting with Users Graphics 1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Interactive Programs Java API. Terminology Event—an action or occurrence, not part of a program, detected by the program. Events can be Event—an action.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
1 Actionscript for Flash by Dr SC Li. 2 Understanding more about instances Symbolsgraphics buttons Movie clips Instances (without names) No interaction.
COSC 4126 User Interaction User Interaction capturing and responding to input events.
MIS333k(Poynor) Chapter 2. Intro to VBA Events Where to plug in your programs?
7. JavaScript Events. 2 Motto: Do you think I can listen all day to such stuff? –Lewis Carroll.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
Michael Olivero Microsoft Student Ambassador for FIU Pick up your free drink below to your left. 1 per person please.
Host Objects: Browsers and the DOM
 2002 Prentice Hall. All rights reserved. 1 Outline Mouse Event Handling Keyboard Event Handling Graphical User Interface Concepts:
Events Event Handling in JavaScript SoftUni Team Technical Trainers Software University
CISC 110 Day 6 Introduction to Events. Outline Event-Driven Programming Event Classes Hierarchy –Event Class –Mouse Events –Keyboard Events Registering.
JavaScript Events.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 8 – Event Handling Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.
 objects in Client  What is Event?  Event Handlers  programming.
Week 7: Debugging and Error Handling Debugging methods available in the ID Error-handling techniques available in C#
CSE 154 LECTURE 10: MORE EVENTS. Problems with reading/changing styles Click Me HTML window.onload = function() { document.getElementById("clickme").onclick.
Mouseless Computing For Windows OS After completing this tutorial you will be able to navigate your computer using keyboard shortcuts.
Dr. Abraham Professor UTPA Graphical User Interface.
JavaScript and HTML Simple Event Handling 11-May-18.
Responding to Events Event Handling in Java
Validating User Input Lesson 5.
Keyboards, Pages & Transforms
Introduction to Events
JavaScript and Events.
Visual Basic Properties, Methods and Events
CSE 154 Lecture 11: More Events.
Lesson 17: Building an App: Canvas Painter
Working with the Event Model
Events.
Introduction to jQuery
Visual programming Chapter 4: GUI (Graphical User Interface) Part II
JavaScript and Events CS Programming Languages for Web Applications
MsgBox, InputBox, and other Day 7 stuff.
Chapter 13: Handling Events
CS7026 jQuery Events.
Event loops.
CHAPTER 6 EVENTS. CHAPTER 6 EVENTS WHAT IS AN EVENT?
JavaScript and Events CS Programming Languages for Web Applications
Presentation transcript:

Implement User Input Windows Development Fundamentals LESSON 2.4A

Windows Development Fundamentals LESSON 2.4A Lesson Overview How do Windows ® Forms applications process user input? In this lesson, you will learn about:  Keyboard input  Mouse input  Handling user input events

Windows Development Fundamentals LESSON 2.4A Anticipatory Set  Explain how events (and event handlers) work in a Windows Forms application.

Windows Development Fundamentals LESSON 2.4A Windows Messages  Signals sent to an application by the operating system in response to user input.  — In a Windows Forms application, these messages are processed and used to raise events.  Through event handlers, an application can process user input.  — The methods that process Windows messages can be overridden, allowing messages to be intercepted before an event is raised.

Windows Development Fundamentals LESSON 2.4A Keyboard Input  Three events associated with keyboard input occur in this order: 1.KeyDown: is raised once when a keyboard key is pressed. 2.KeyPress: is raised continuously as the key is held down. 3.KeyUp: is raised once when a keyboard key is released.  The event handler for KeyPress receives a KeyPressEventArgs parameter, which specifies the character specified by the user.  — For example, SHIFT-R on the keyboard would specify an uppercase R in the KeyPressEventArgs parameter; the R key alone would specify a lowercase R.  The event handlers for KeyDown and KeyUp receive a KeyEventArgs which specifies the physical key pressed (for example, the R key), the Modifiers property (SHIFT, CTRL, or ALT), and the KeyData property (the key code plus a modifier).

Windows Development Fundamentals LESSON 2.4A Mouse Input  There are many events associated with input in a Windows Forms application.  — See the “User Input Reference” handout for a detailed list.  In a standard mouse click, four events are raised in this order: 1.MouseDown: is raised when the mouse pointer is over the control and the user presses a mouse button. 2.Click: is raised when the mouse button is released. Note: the Click event is not specific to mouse input—it is also used when a control is “clicked” some other way, such as pressing Enter when the control has focus. 3.MouseClick: occurs when the user clicks the control with the mouse. 4.MouseUp: is raised when the mouse pointer is over the control and the user releases a mouse button.

Windows Development Fundamentals LESSON 2.4A Lesson Review  Complete the “User Input Review” Student Activity.