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

Including state graphics on buttons


Buttons have six states in LiveCode: enabled, highlighted, disabled, visited, armed, and hover. Each of these states can have an associated icon to help us communicate with our users. In this recipe, you will learn how to include state graphics on your buttons.

How to do it...

To include graphics on buttons, perform these steps:

  1. Create a new main stack.

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

  3. Select, with a single click, the button you want to modify.

  4. Right-click on the button and select Property Inspector.

  5. Using the property inspector, select, Icons & Border. This will bring up the interface shown in the following screenshot:

  6. Select the button state you want to modify. An explanation of each state is in the following table:

    Button State

    Graphic reference

    This state exists when…

    Enabled

    Icon

    The button is available for use.

    Highlighted

    Hilite icon

    The button is being depressed.

    Disabled

    Disabled icon

    The button is not available for use.

    Visited...