O'Reilly logo

LiveCode Mobile Development HOTSHOT by Edward D Lavieri Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the user interface

Our first task is to build the user interface for our Mobile Calculator application. There will be a total of 20 interface objects for our project. We'll handle adding LiveCode scripts to each button in the next section.

Prepare for Lift Off

Here is the list of interface objects we'll need for our application:

  • Number buttons (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9)
  • Calculation buttons
    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (%)
  • The decimal button
  • The clear (C) button
  • The equals (=) button
  • The random (R) button
  • Two label fields

Engage Thrusters

  1. Let's begin by creating a new main stack named MobileCalculator. Using the properties inspector, make the following customizations to the main stack:
    1. Change the size of the stack to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required