CS350 – Windows Programming Formerly and more properly named: Event Driven Programming Dr. Randy Ribler.

Slides:



Advertisements
Similar presentations
Review for Vocabulary Section 5 Quiz. What is a computer program used for a specific task? Ex. Word processing software, slideshow software.
Advertisements

Intro to Computers!.
Windows Basics: The Mouse. The Mouse Before you can explore the Desktop and Taskbar, you must know how to use your mouse. Your mouse is a pointing device.
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 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
DESCRIBING INPUT DEVICES
Event Handling.
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.
Computers: Getting Started 6 May Today we will learn: 1. Overview: parts of a computer 2. How to use a computer mouse 3. Computer Basics: Terms.
Event-based Programming Roger Crawfis. Window-based programming Most modern desktop systems are window-based. Non-window based environment Window based.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
 At the end of this class, students are able to  Describe definition of input devices clearly  List out the examples of input devices  Describe.
Exploring the Basics of Windows 8
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
You will find applications that are installed on the computer. Go to Start – Programs (depending on view Start – All Programs). All applications installed.
Software GCSE COMPUTING.
Prepared by Fareeha Lecturer DCS IIUI 1 Windows API.
Lecture 5: Interaction 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
CS 480/680 Computer Graphics Programming with Open GL Part 7: Input and Interaction Dr. Frederick C Harris, Jr. Fall 2011.
Exploring Windows and Essential Computing Concepts 1 Windows Desktop u Windows Basics u Icon u Start Button u My Computer u Network Neighborhood u Recycle.
Computer Science 112 Fundamentals of Programming II Command Buttons and Responding to Events.
Computer Basics Lesson 2 Using Windows and the Start Menu 1.
Computing Science 1P Lecture 17: Friday 23 rd February Simon Gay Department of Computing Science University of Glasgow 2006/07.
Mr. Osmer Turn on computer and monitor. 2. Press Ctrl+Alt+Delete all at the same time. 3. Wait for the desktop to show. Desktop 2.
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
CS-1020 Dr. Mark L. Hornick 1 Event-Driven Programming.
Object Oriented Programming.  Interface  Event Handling.
Registering a window class Windows allows many styles of window to be created. To tell Windows to create a window as you want it you need to define a class.
11 General Game Programming Approach. The program is event-driven The program is event-driven –Messages = events –So as all windows system (for example.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
Basics of Windows 95/98/NT. Versions of Windows Windows 95 and 98 used mainly on standalone computers Windows NT used on networked computers (as in our.
Computer Vocabulary Computer
Application software- programs that let you do things What are some computer programs that you or your parents use on the computer?
Getting to know the computer Great Falls Public Schools.
Implement User Input Windows Development Fundamentals LESSON 2.4A.
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
September 12, 2011 – Laptops!. Today you are going to learn how to log on to your computer with a password that you created. You will also activate your.
(More) Event handling. Input and Windowed-OS’s Windowed OS’s (Windows, OSX, GUI-linux’s) send messages (events) when the user does something “on” the.
Return to the Welcome to Windows 7 web page Lesson 1: Getting Your First Look.
Allows the user and the computer to communicate with each other.
CS345 – Event-driven Programming
Introduction to Event-Driven Programming
Event-driven programming
Event loops 16-Jun-18.
What this activity will show you
Chapter 1: Learning About Computer Basics
 Firstly you need to press the “Windows” key, and then simply enter “Google Chrome” that will bring up the search option. Here you need to right-click.
Lesson 1: Buttons and Events – 12/18
System Unit Monitor Computer System Keyboard Mouse Printer.
Miscellaneous Topics #6: Polygons GUI Components and Event Handlers
Event Driven Programming
EE 422C Java FX.
The mouse controls the movement of the pointer on your screen.
Event loops.
Windowing Push-Pull Systems
Event loops 17-Jan-19.
Event loops 17-Jan-19.
WHAT IS WINDOWS MULTIPOINT SERVER 2012?
Event Driven Programming Anatomy – Handle
ACME Automated Courseware Management Environment
Scratch Summer Session 2
Event loops 8-Apr-19.
05 | Desktop Applications
Event loops.
Event loops.
Event loops 19-Aug-19.
Presentation transcript:

CS350 – Windows Programming Formerly and more properly named: Event Driven Programming Dr. Randy Ribler

Who’s in charge Here? The Computer ▫Many text-based console applications  Computer says: “Enter username: “  Choices ▫Enter a username ▫Stop the program The User ▫Event-driven/Graphical applications  Computer responds to what the user does (events):  Click a button  Type a command  Drag an icon

Event-driven Programming Desktop Programming ▫Windows Programming ▫X Window Programming (linux) Mobile Programming ▫Android Programming ▫iPhone Programming Web Programming ▫ASP.NET ▫JavaScript

Events (Messages) Mouse Clicks Mouse Movements Keyboard events (a character is pressed) Timer events (timer expires) Windows Events (e.g., a window gets/loses focus) System events (e.g., system shutdown)

Events are Described in Messages Messages have a unique identifier (message number) Message can carry parameters – for example: ▫Cursor coordinates on a mouse click ▫The object that caused the message to be sent ▫The character that was typed ▫The mouse button that was pressed

Messages Enter a Message Queue Third Message Second Message First Message Are Processed by a Message Loop

Message Loop While the program is still running (no quit message) ▫Read a message from the message queue ▫Decode the message ▫Invoke the functions that have been associated with that message

Associating Functions with Messages C/C++ Function Pointers ▫Point to functions called “callbacks” C# Delegates ▫Safer types of function pointers

Function Pointers in C++ Functions that return pointers ▫A function that returns a char*  char* functionThatReturnsAPointer(int x); Pointers to functions ▫A pointer to a function that returns a char*  char* (*ptrName)(int x);