Lesson 1: Buttons and Events – 12/18

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
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Video Game Design Lesson 1. Game Designer Person involved in the development of a video game Person involved in the development of a video game Usually.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
How to Debug VB .NET Code.
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) 
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Windows 10. The New Microsoft Operating System to be released July 29 th. It’s not just a PC operating system, it’s a lot more, it includes phones,
1 Events Lect 8. 2 Event-driven Pages one popular feature of the Web is its interactive nature e.g., you click on buttons to make windows appear e.g.,
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Welcome to CIS 083 ! Events CIS 068.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Introduction to Matlab & Data Analysis
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.
App Inventor MIT App Inventor.
Lab 6: event & input intro User Interface Lab: GUI Lab Oct. 2 nd, 2013.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Understanding JavaScript and Coding Essentials Lesson 8.
Part 1 Working with Devices in the CQ Lab. Agenda 2 How to select a device and reserve it. Basic device operations inside the Lab Other features to get.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Procedural programming Procedural programming is where you specify the steps required. You do this by making the program in steps. Procedural programming.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
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.
FOP: Multi-Screen Apps
Unit 5: Canvas Painter.
Development Environment
Chapter 2: The Visual Studio .NET Development Environment
Responding to Events Event Handling in Java
Introduction to Event-Driven Programming
FOP: Buttons and Events
Chapter Topics 15.1 Graphical User Interfaces
11.10 Human Computer Interface
Event-driven programming
Lesson 5-2 AP Computer Science Principles
Section 17.1 Section 17.2 Add an audio file using HTML
UNIT 3 – LESSON 5 Creating Functions.
Unit 2 User Interface Design.
Understand Windows Forms Applications and Console-based Applications
Introduction to Events
Windows Desktop Applications
Lesson 10: Building an App: Color Sleuth
Learning to program with Logo
Event Driven Programming
Lesson 2: Multi-Screen Apps
Building an App: Multi-Screen App
Explain what touch develop is to your students:
Introduction to Computing Using Java
Lesson 8: Boolean Expressions and "if" Statements
Social Media And Global Computing Introduction to Visual Studio
Lesson 4: Controlling Memory with Variables
Lesson 17: Building an App: Canvas Painter
Understanding the Visual IDE
LESSON 14 - Building an App: Image Scroller
Lesson 1: Decomposition
Creating Functions with Parameters
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Introduction to TouchDevelop
Introduction to AppInventor
Chapter 15: GUI Applications & Event-Driven Programming
JavaScript and Events CS Programming Languages for Web Applications
Tonga Institute of Higher Education
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
ACM programming contest
Interactive Media Technology
JavaScript and Events CS Programming Languages for Web Applications
Presentation transcript:

Lesson 1: Buttons and Events – 12/18 Unit 5 - Building Apps

CODING TIME AGAIN – HOORAY!

VOCABULARY ALERT: 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 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.

More Vocabulary: Syntax Errors are the kinds of problems that show errors in the console. In the grand scheme of things syntax errors are easy problems to solve because the computer is telling you it can't understand something, you just have to find out what it is. Logic Errors can be much harder to solve because the computer doesn't report anything wrong at all. The program just doesn't do what you think it should or want it to. Tracking down these kinds of errors is much harder, and requires some practice to get used to it. We suggest some techniques in the levels that follow. Users trigger events - Events occur when users click a button, tap the screen, move the mouse, type a key on the keyboard, etc. Events trigger code - When an event occurs or "fires" it can be used to trigger a particular JavaScript function.

You will be using a new feature of App Lab: Design Mode You will be using a new feature of App Lab: Design Mode. Design Mode allows you to easily design the User Interface (UI) of your apps using a drag-and-drop editor. You will also learn how to add event handlers - code that listens for and responds to user-events. 

You will also 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? DO THIS: 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.

Likely events will include things like: clicking a button swiping a screen dragging your finger tilting a phone pressing a key, etc.

Modern apps are interactive because they can respond to this and other forms of user input (i.e., human-generated events).

Apps have elements on the screen that you can interact with (i. e Apps have elements on the screen that you can interact with (i.e. cause user-generated events) Apps respond to these events in various ways. You want to be on the lookout for types of events we can program with like: mouse click or movement, typing keys on the keyboard, etc. in combination with types of screen elements you can perform those actions on like: buttons, menus, text fields, images, etc.

Go into Code Studio no handouts today – everything is in the Code Studio

TO DO: Read Student Overview Watch the video: Intro to Design Mode in App Lab Work your way through all the levels Say good-bye to the turtle, because we are moving on! Show me the Chaser Game for credit Be clean and green and complete the whole lesson NO HOMEWORK TODAY!!!