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

Formatting an e-mail


It can be helpful to users if you prepopulate e-mails before presenting the user with the mobile operating system's e-mail dialog interface. You might, for example, want to create an e-mail message highlighting an in-game achievement of your users. This recipe will show you how to format an e-mail using the To address, CC address, e-mail subject, and e-mail body.

How to do it...

By performing the following steps, you can have your mobile app prepopulate some e-mail properties so that it is preformatted or prefilled for your user:

  1. Create a new LiveCode stack.

  2. Set the background color of the default card to black.

  3. Drag a new label to the card and set the following properties:

    • Name: lbl_toAddress

    • foregroundColor: White

    • textSize: 14

    • Text style: Bold

    • Contents: To Address

  4. Drag a new label to the card and set the following properties:

    • Name: lbl_ccAddress

    • foregroundColor: White

    • textSize: 14

    • Text style: Bold

    • Contents: CC Address

  5. Drag a new label to the card and set the following properties...