Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LiveCode Mobile Development Beginner's Guide (2nd Edition)

You're reading from   LiveCode Mobile Development Beginner's Guide (2nd Edition) Create interactive mobile apps for Android and iOS with LiveCode

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781849699655
Length 256 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Colin Holgate Colin Holgate
Author Profile Icon Colin Holgate
Colin Holgate
Joel W Gerdeen Joel W Gerdeen
Author Profile Icon Joel W Gerdeen
Joel W Gerdeen
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. LiveCode Fundamentals FREE CHAPTER 2. Getting Started with LiveCode Mobile 3. Building User Interfaces 4. Using Remote Data and Media 5. Making a Jigsaw Puzzle Application 6. Making a Reminder Application 7. Deploying to Your Device A. Extending LiveCode Index

Making a simple calculator application

With even basic familiarity of LiveCode, you can start to make something of use. Here, we will make a very simple calculator stack.

Inspector clues, oh!

You will find yourself using the Inspector palette a lot; so, take a moment to study how it behaves. When you select an object on the card, you will see that the Inspector palette changes its appearance, sometimes even its height, to show the options for the item you have selected. It is smart enough to notice when you have selected multiple items and shows the align tools.

Sometimes, you will want to keep an Inspector palette set to view the options of a particular object on the card, and not switch so as to show a different object as you make other selections. In the upper-right corner of the Inspector palette is a padlock icon, which will let you lock the Inspector to the current object.

So far, most of the Inspector palette options haven't affected us, but one that is about to be relevant is the fact that you can set a name for an item that is different from its label. You may know from other programming languages, and this does apply to LiveCode too, that some names are less legal than others. Perhaps you can't have spaces in the name or use a colon or backslash. If you name a button with a number, button "1" may not be button 1 and this could lead to confusion.

For the calculator keys, we will set a label to make it look correct and a name that doesn't lead to confusion. Speaking of those calculator keys…

You have been reading a chapter from
LiveCode Mobile Development Beginner's Guide (2nd Edition)
Published in: May 2015
Publisher:
ISBN-13: 9781849699655
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime