Introduction to Event-Driven Programming

Slides:



Advertisements
Similar presentations
What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
Advertisements

Microsoft® Small Basic
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Creating an OOED Application
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Event-driven programming. Most modern computer programs that people use have Graphical User Interfaces (GUIs). A GUI has icons on the computer screen.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Introduction to Matlab & Data Analysis
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Lab 6: event & input intro User Interface Lab: GUI Lab Oct. 2 nd, 2013.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
 2002 Prentice Hall, Inc. All rights reserved Introduction Graphical User Interface (GUI) –Gives program distinctive “look” and “feel” –Provides.
Computer Science 112 Fundamentals of Programming II Command Buttons and Responding to Events.
Purpose of Operating System Monil Adhikari. Agenda Introduction Responsibilities of Operating System User Interfaces Command Line Interface Graphical.
Understanding JavaScript and Coding Essentials Lesson 8.
Programming Logic and Design Seventh Edition Chapter 12 Event-Driven GUI Programming, Multithreading, and Animation.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
Office 2016 and Windows 10: Essential Concepts and Skills
FOP: Multi-Screen Apps
Introduction to.
Canvas and Arrays in Apps
Unit 5: Canvas Painter.
Responding to Events Event Handling in Java
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
FOP: Buttons and Events
Lab11 – MobileUIFrontEnd-BluemixBackend
Chapter Topics 15.1 Graphical User Interfaces
11.10 Human Computer Interface
Event-driven programming
Event loops 16-Jun-18.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Lesson 5-2 AP Computer Science Principles
Section 17.1 Section 17.2 Add an audio file using HTML
1. Introduction to Visual Basic
Visual programming Chapter 1: Introduction
Looping and Random Numbers
Introduction to Programming the WWW I
Understand Windows Forms Applications and Console-based Applications
Lesson 1: Buttons and Events – 12/18
Design AH Computing.
Introduction to Events
Chapter 2 Visual Basic Interface
Event Driven Programming
Lesson 2: Multi-Screen Apps
Building an App: Multi-Screen App
Introduction to Computing Using Java
Lesson 4: Controlling Memory with Variables
Lesson 17: Building an App: Canvas Painter
LESSON 14 - Building an App: Image Scroller
Event loops.
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Event loops 17-Jan-19.
Event loops 17-Jan-19.
Introduction to AppInventor
Event loops 8-Apr-19.
JavaScript and Events CS Programming Languages for Web Applications
Tonga Institute of Higher Education
ICT Programming Lesson 5:
ACM programming contest
Event loops.
Event loops 19-Aug-19.
JavaScript and Events CS Programming Languages for Web Applications
Presentation transcript:

Introduction to Event-Driven Programming Lesson 5-1 AP Computer Science Principles

Objectives Students will be able to: Use Design Mode to add user interface (UI) elements to a screen. Create a simple event-driven program by creating user- interface elements with unique IDs and attaching event handlers to them. Recognize debugging and responding to error messages as an important step in developing a program. Debug simple issues related to event-driven programming

What events do familiar apps use to be interactive? Take out a piece of paper or journal Draw a rectangle representing the screen of a mobile device Take one minute to sketch out what a screen in your favorite app looks like Now make a quick list of everything on that screen that you can interact with as a user. Finally, write down one action-and-reaction of the app: one thing you do, and how the app responds.

Event Driven Programming We may not understand all the technical details yet, but it seems clear that most applications we use respond to events of some kind. Whether we’re clicking a button or pressing a key, the computer is sensing events that we generate in order to determine how the application should run. Today, we’re going to start exploring how event- driven programming makes this possible

Vocabulary User Interface (UI) - The “User Interface” or UI of an app refers to how a person (user) interacts with the computer or app. UI Elements or objects, like buttons, images, text boxes, pull down menus, screens and so on. UI Events or controls, like click, scroll, move mouse, type keyboard key, etc. Event-driven program - a program designed to run blocks of code or functions in response to specified events (e.g. a mouse click) Event handling - an overarching term for the coding tasks involved in making your app respond to events by triggering functions. Event listener - a command (onEvent in App Lab) that can be set up to trigger a function when a particular type of event occurs on a particular UI element. Callback function - a function specified as part of an event listener; it is written by the programmer but called by the system as the result of an event trigger.

Unit 5 – Stage 1 Complete Unit 5 Stage 1

Video