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

Using a slider


In this recipe, you will learn how to use a MobGUI slider. Sliders can be used to show a range of values.

Getting ready

Before using this recipe, you will need to have the MobGUI plugin downloaded and installed on your development computer. See the Setting up MobGUI recipe discussed earlier in this chapter.

How to do it...

Follow the steps in this recipe to create a slider that can be used to select a numeric value:

  1. Create a new main stack in LiveCode.

  2. From the Development menu, navigate to Plugins | revMobGUI.

  3. Click on the play button, shown in the following screenshot, from the icons on the MobGUI interface:

  4. Drag the slider icon from the MobGUI interface to the card. This will result in a group being added to the card.

  5. Using the property inspector, position the slider so that it is at location 155,58.

  6. Click on the new slider group so that it is selected.

  7. In the MobGUI interface, change the name of the slider to mySlider.

  8. Drag a standard label from the LiveCode Tools palette and set...