Book Image

LiveCode Mobile Development Beginner's Guide (2nd Edition)

Book Image

LiveCode Mobile Development Beginner's Guide (2nd Edition)

Overview of this book

Table of Contents (15 chapters)
LiveCode Mobile Development Beginner's Guide Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – using the Geometry Manager to position buttons


We'll add some buttons to the stack that we are currently working on:

  1. Take the first four buttons and duplicate them to get another set of four buttons below the previous ones.

  2. Select the first of the new buttons and in the Geometry section of the Inspector palette, click once on the vertical bar and twice on the horizontal bar; you will end up with the state shown in the previous screenshot.

  3. Do the same for the other three buttons.

  4. Try resizing the card window.

What just happened?

That was quite a quick test, and if all went well, you will see that resizing the card window includes positioning the first four buttons using the resizeStack handler that we added, and it's positioning of the second set of four buttons using the Geometry Manager. With the settings we used, the results should be much the same, except that the second set of four buttons will remain a fixed distance away from the bottom of the card window.

There is a lot...