Book Image

LiveCode Mobile Development Cookbook

By : Dr. Edward Lavieri
Book Image

LiveCode Mobile Development Cookbook

By: Dr. Edward Lavieri

Overview of this book

Table of Contents (17 chapters)
LiveCode Mobile Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Recording user actions


Some applications are better served when you record the user's actions. In this context, a user action refers to an in-app behavior such as clicking on/touching a button or moving a slider. In this recipe, we will create a user action log and program a button to record user actions.

How to do it...

To record user actions, perform the following steps:

  1. Create a new main stack for a mobile application.

  2. Add three buttons across the top named Safe, Secure, and Restricted.

  3. Add a button named Reset Log at the bottom-center of the card.

  4. Create a scrolling text field named fldLog to fill the remainder of the card.

  5. Set the background color of the fldLog field to black.

  6. Set the foreground color of the fldLog field to yellow. This will be the color of the text entered into the log.

  7. Set text size of the fldLog field to 14.

  8. Set the traversalOn property to false (deselect the Focusable checkbox in the Basic Properties section of the property inspector).

  9. When you complete steps 1 to 5, your...