官术网_书友最值得收藏!

Aligning interface objects

The mobile apps we develop can have several objects on the screen simultaneously. It is important that these objects line up and not look haphazard. LiveCode provides us with tools to make aligning our objects relatively easy.

How to do it...

Perform the following steps to align interface objects:

  1. Create a new main stack.
  2. Drag two or more objects on the stack's card. For example, drag two button objects to the card.
  3. Select the objects you want to align. To do this, click on the first object, and then, while holding the Shift key, click on the remaining objects you want to align. When you are finished selecting the objects, release the Shift key.

    Note

    When selecting multiple objects to align, it is important that you ensure the first object you select is the one you want to use as a reference. For example, you might want to align selected objects by the left ledge of the first object you selected.

  4. Click on the How to do it... icon on the toolbar. This will bring up the property inspector.
  5. Select the Align Objects section of the property inspector:
  6. Select one or more of the six alignment buttons (top, bottom, left, right, middle, or center) to align your objects.

How it works...

Aligning the objects via the property inspector saves us time when creating and laying out the human-computer interface.

主站蜘蛛池模板: 略阳县| 重庆市| 永顺县| 靖安县| 泰和县| 进贤县| 万年县| 瑞丽市| 罗山县| 霞浦县| 武强县| 西充县| 兴化市| 锦州市| 青铜峡市| 赤水市| 土默特右旗| 阜阳市| 榆社县| 南部县| 沿河| 莱阳市| 武冈市| 张家界市| 仪陇县| 福贡县| 安新县| 泗洪县| 双流县| 阿图什市| 浙江省| 泰安市| 陆川县| 聂荣县| 宣恩县| 泸定县| 阳东县| 达州市| 额敏县| 集贤县| 长丰县|