Programming of Mobile and Handheld Devices Lecture 7: Programming OXO for Palm OS Rob Pooley

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Check spelling in a document. Check for grammatical errors. Find specific text. Replace specific text.
Advertisements

1What is the Stage. 2How do you open a panel in Flash
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
CPIT 102 CPIT 102 CHAPTER 1 COLLABORATING on DOCUMENTS.
Chapter 2 Creating a Research Paper with Citations and References
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
1 Round 6 Technology CAD / CAM. 2 Passport Photo Frame Drawing Area Draw / Edit Toolbox Drawing Aids Toolbox Position, Size and Direction Information.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
HTML Comprehensive Concepts and Techniques Second Edition Project 8 Integrating JavaScript with HTML.
Using the Unity 98 Cordless Response System Directions : Courtesy of IHC public relations.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
VIDEOOPTIONS PIPE LIST PIPE INFO CAMERAS STATUS SLIDER.
Lesson 8 Creating Forms with JavaScript
Chapter 8: String Manipulation
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Database testing Prepared by Saurabh sinha. Database testing mainly focus on: Data integrity test Data integrity test Stored procedures test Stored procedures.
Lecture 2 Event driven programming Mobile and Handheld Applications1 Programming of Handheld and Mobile Devices Lecture 2: Event driven programming concepts.
Met Alert Tool (MAT). Introduction What is MAT? –Met Alert Tool (MAT) monitors and alerts the user to weather conditions exceeding thresholds (for example,
CTS130 Spreadsheet Lesson 3 Using Editing and Formatting Tools.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
JavaScript Lecture 6 Rachel A Ober
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
F27SB2 Software Development 2 Lecture 6: Java GUIs 5.
 The World Wide Web is a collection of electronic documents linked together like a spider web.  These documents are stored on computers called servers.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 12 lcdui Rob Pooley
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 5 Compiling with resources Rob Pooley
WML What is WML? WML stands for Wireless Markup Language. It is a mark-up language inherited from HTML, but WML is based on XML, so it is much stricter.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 23 Summing up Rob Pooley
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 13 lcdui and OXO Rob Pooley
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
CREATING TEMPLATES CREATING CUSTOM CHARACTERS IMPORTING BATCH DATA SAVING DATA & TEMPLATES CREATING SERIES DATA PRINTING THE DATA.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit G Using Forms to Control Input.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 17 – Flag Quiz Application Introducing One-Dimensional.
Using Microsoft Word & Excel §Open a new document in MS Word §Click on Tools & then Mail Merge l a dialogue box, like the one on this page, will appear.
Common Data Types used in Palm OS Programming Reference: Ch.8—PDA Programming in C Book.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 19 MIDlet to Palm Rob Pooley
1 PanelView ™ 300 Micro & MicroLogix ™ Lab 1. 2 Today you will receive training on the NEW PanelView 300 Micro operator terminal and the NEW version of.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
To begin click: File, New, then select Design Familiarize yourself with the controls on the page. Then use the maximise button the make the window fill.
Programming of Mobile and Handheld Devices Lecture 5: Programming for Palm OS Rob Pooley
1 PL\SQL Dev Templates. 2 TEMPLATE DEFINITION Whenever you create a new program unit, its initial contents are based upon a template which contains pre-defined.
CIS 3.5 Lecture 2.2 More programming with "Processing"
Lecture 4 OXO for PalmMobile and Handheld Applications1 Programming of Mobile and Handheld Devices Lecture 4: Programming OXO for Palm OS Rob Pooley
ITI 1120 Lab #5 Contributors: S. Boyd, R. Plesa, A. Felty, D. Inkpen, A. Williams, D. Amyot.
Lecture 3 Programming on Palm OS Mobile and Handheld Applications1 Programming of Mobile and Handheld Devices Lecture 3: Programming for Palm OS Rob Pooley.
1 Fields Sacramento City College Engineering Design Technology.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Event Handling. Objectives Using event handlers Simulating events Using event-related methods.
2D Design – A Guide! SECTION 1.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
Directions: 1.Divide the class into two teams: X’s & O’s. Begin the game. 2.Once all characters have been introduced, you will come to a screen with all.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Perfecto Mobile Automation
Associate ® Administration An Associate administrator has the ability to change the parameters for both the author and for the typist. There can be enterprise.
1 Pertemuan 10 Using Type Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
YOU COMUTER WANT TO PLAY NOUGHTS AND CROSSES WELL NOW YOU CAN! JUST CLICK ON THE PLAY BUTTON BELOW AND YOU CAN BEGIN IF WINNER APPEARS BELOW CLICK ON IT.
Welcome to... A Game of X’s and O’s. Modified from a Presentation © All rights Reserved
JavaScript, Sixth Edition
C Calling Conventions parameters are passed on the run-time or system stack, SP (or A7) parameters pushed on stack in “right to left” order of call A6.
Edit a Public Holiday – Holiday Calendar
Data Validation and Protecting Workbook
A few tricks to take you beyond the basics of Microsoft Office 2007
More programming with "Processing"
File Input and Output.
Presentation transcript:

Programming of Mobile and Handheld Devices Lecture 7: Programming OXO for Palm OS Rob Pooley

Designing and programming a new application This lecture describes the design and implementation of the second game we set out in lecture 4. This time we are building a noughts and crosses (tic-tac-toe) game. Here is the statechart that we defined previously.

The design and implement process The design of a Palm OS application from a statechart follows the steps below: 1.Each state defines a distinct point in the evolution of the application and needs a screen (Form) which corresponds to it; 2.Each form needs an event handler function; 3.For each successor state, each form needs one mechanism which triggers a move to that state; 4.Update the AppHandleEvent function to deal with the Form types and their handlers defined above; 5.Work out what information needs to exist across states; 6.Set up the project and its makefile.

Initial state – black filled circle Welcome to noughts and crosses. Would you like to play a game? PlayExit

X to move state – buttons only Click on a square to plant a cross Done

Or draw a bitmap over invisible buttons

Buttons set to not usable are invisible

X has moved state Your X move was valid/invalid OK Show an alert?

Notes as we go The state to date must be remembered across states for checking and display updating. The text should be different depending on the validity of the move made. –That is not a user determined outcome, but is triggered by an internal check. –The grid is displayed with a cross if the move was valid, maybe with some indication of where the invalid move appeared otherwise?

Winning state Alerts are for grabbing attention and giving information. Do we need separate forms or alerts for each outcome? We can use a Field and set its text if we want to. Congratulations to X/O You won! Done

Control Resources Different resources are associated with different controls, as follows: Button Button Resource (tBTN) Popup trigger Popup Trigger Resource (tPUT) Selector trigger Selector Trigger Resource (tSLT) Repeat controlRepeating Button Resource (tREP) Push buttonPush Button Resource (tPBN) Check boxCheck Box Resource (tCBX) SliderSlider Resource (tsld) Feedback sliderFeedback Slider Resource (tslf)

FldInsert Function Replace the current selection if any with the specified string and redraw the field. Declared In Field.h Prototype Boolean FldInsert(FieldType *fldP,const Char *insertChars, UInt16 insertLen) Parameters fldP Pointer to the field object (FieldType structure) into which to insert.FieldType insertChars Text string to be inserted. insertLen Length in bytes of the text string to be inserted, not counting the trailing null character. Returns Returns true if string was successfully inserted. Returns false if:

Setting up the files for a build

Edit the makefile to reflect this ## # Sources and Resources # List all the sources (.c/.cpp) and resources (.xrd) in your project # Use project relative path names with forward slashes (src/code.cpp). # Please do not use spaces in directory names. # A note about XRD resource files: If you have existing.rsrc or.rcp, # files refer to the documentation for the GenerateXRD tool to convert # them into XRD files for use with all Palm OS SDKs. ## # TODO: Update all sources and resources SOURCES = src/AppMain.c RESOURCES = rsc/OXO.xrd SLIB_DEF_FILE =