Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying LiveCode Mobile Development Cookbook
  • Table Of Contents Toc
LiveCode Mobile Development Cookbook

LiveCode Mobile Development Cookbook

By : Dr. Edward Lavieri Jr.
3.5 (11)
close
close
LiveCode Mobile Development Cookbook

LiveCode Mobile Development Cookbook

3.5 (11)
By: Dr. Edward Lavieri Jr.

Overview of this book

If you are a LiveCode mobile developer looking to improve your existing skills, add efficiencies to your code, or want a better understanding of LiveCode’s capabilities, then LiveCode Mobile Development Cookbook is a must-have for you. The reader should at least have a basic understanding of LiveCode and mobile application development.
Table of Contents (12 chapters)
close
close
11
Index

Dynamically displaying interface objects


Oftentimes, we will create interface objects and only have them appear on the screen when appropriate. For example, you might have a graphic indicator that the user has unread system messages. If the value is 1 or higher, then you might have the graphic visible; otherwise, you might hide it. This recipe shows you how to accomplish this task.

How to do it...

Perform the following steps to dynamically display interface objects:

  1. Create a new main stack.

  2. Drag a button to the stack's card.

  3. Change the name of the new button to testButton.

  4. To make an object, such as a button, visible, use the following syntax:

      set the visible of <object type> <"object name"> to true

    So, for example, if you have a button named testButton, your code will be as follows:

      set the visible of btn "testButton" to true
  5. To hide the example button from step 4, enter the following code:

      set the visible of btn "testButton" to false
  6. To toggle a button's visibility, add the following...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
LiveCode Mobile Development Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon