Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.

Slides:



Advertisements
Similar presentations
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Advertisements

Introduction to Macromedia Director 8.5 – Lingo
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Prof. Yitzchak Rosenthal
It’s Alive! Continuous Feedback in UI Programming Sebastian Burckhardt Manuel Fahndrich Peli de Halleux Sean McDirmid Michal Moskal Nikolai Tillmann Microsoft.
Chapter 3 Creating a Business Letter with a Letterhead and Table
Java Script Session1 INTRODUCTION.
Dawn Pedersen Art Institute. What is Spry? Spry is Dreamweaver’s version of JavaScript libraries. Spry effects alter the look of a page element—or of.
The Web Warrior Guide to Web Design Technologies
Introduction to TouchDevelop
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
JavaScript- with, this. Short cut using with In the previous exercise function mult() { first=parseFloat(document.simpleForm.num1.value); second=parseFloat(document.simpleForm.num2.value);
Cosc 4755 Phone programming: GUI Concepts & Threads.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Word Processing Microsoft Office: Exploring Word 2011 for MAC.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Introduction to JavaScript for Python Programmers
Programming on the Go Chapters 1and 2 Siddharth Patel
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Games. learning objectives o writing games! o understanding the built-in 2D game engine o events in games o using art (pictures, sounds)
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
Productivity Programs Common Features and Commands.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 7 – Adding and.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Android Boot Camp for Developers Using Java, 3E
Apps Find the latest version of this document at
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 INTRODUCTION TO ADOBE FLASH CS3.
7 1 User-Defined Functions CGI/Perl Programming By Diane Zak.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
Copyright Ó Oracle Corporation, All rights reserved Working with Other Canvases.
Java Applets: GUI Components, Events, Etc. Ralph Westfall June, 2010.
CIS 3.5 Lecture 2.2 More programming with "Processing"
Copyright © Curt Hill More Components Varying the input of Dev-C++ Windows Programs.
JavaScript, Fourth Edition
General “Search” or “Find” vs “Manage” “Edit” has no second level tab. is always under the “Create” tab “Create” or “Add” – need consistency Clickable.
By: Ms. Abeer Helwa 1. CREATE A WORD DOCUMENT 2 Blank document Templates To create a new blank document: click the File tab and click Blank document.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
JavaScript Challenges Answers for challenges
Computer Science I Recap: variables & functions. Images. Pseudo-random processing.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Lesson 16. Practical Application 1 We can take advantage of JavaScript and the DOM, to set up a form so that the first text box of a form automatically.
Apps Find the latest version of this document at
Functions.  Assignment #2 is now due on Wednesday, Nov 25 th  (No Quiz)  Go over the midterm  Backtrack and re-cover the question about tracing the.
Language Find the latest version of this document at
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
Understanding JavaScript and Coding Essentials Lesson 8.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Niranjan Damera-Venkata HP Labs Design.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
HTML Comprehensive Concepts and Techniques Second Edition Creating Frames on a Web Page.
Tables MOAC LESSON 6. Table  Arrangement of data made up of horizontal rows and vertical columns  Used to organize information.
1 PowerPoint Lesson 1 PowerPoint Basics Microsoft Office 2013: Introductory Pasewark & Pasewark.
Boxes. SOUNDBOARD Objective: Tap the boxes to play sounds! Demo:
CSS.
Laying out Elements with CSS
Chapter 1: An Introduction to Visual Basic 2015
Explain what touch develop is to your students:
Explain what touch develop is to your students:
Tutorial 6 Creating Dynamic Pages
Explain what touch develop is to your students:
Explain what touch develop is to your students:
Web Programming and Design
Welcome To Microsoft Word 2016
Presentation transcript:

pages and boxes Building quick user interfaces

learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click events on boxes o note: only available on web version (no phone support)

language recap o local variables: store and reuse a value var x := 5 x->post to wall o if statement: make decisions! if x = 5 then... else... o for loop: repeat code multiple times for 0 <= i < n do...

global variables o a global variable holds a value in memory and “on disk”; o a global variable can be read or written too; o A global variable is available everywhere definition data->x := 0 x := 0 reading x->post to wall update with new value x := 5 is the shorthand for ‘data’

pages o similar to an action causes blank page to be pushed on page stack o has 2 parts initialize: code run once to setup data display: code run every time something changes

page definition page my page ( s:string, n:number ) initialize … initialize global variables … display … code with boxes …

page display o made of nested vertical and horizontal boxes o box attributes: color, border, width, height, … boxed box->use horizontal layout boxed

page display o use if, for, action calls, etc. in display code

page content o text, pictures, whatever you post on the wall boxed box-> use horizontal layout for 0 ≤ i ≤ 5 do boxed box->set width(2) i-> post to wall

page measurement units o in “em”, approximate height of letter “M” box->set width(2) o makes UI scale with text size

on tapped event o Can attach tapped event on boxes box-> on tapped(handler) where handler() is push ▸ my page(“some parameter”)

special text box o Text box content box-> edit text(“initial text”, multiline) o Text edit events box->on text editing(h1) where h1(text : String) is … on each key press … box->on text edited(h2) where h2(text : String) is … when done editing …

page navigation o invoke a page: push new page on top push ▸ my page(“some parameter”) o remove current page (pop top of page stack) wall-> pop page causes previous page to be re-displayed