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

Creating a new main stack

One of the most fundamental tasks in LiveCode is to create a new main stack. Every LiveCode app has a main stack, at least one card, objects, and code. In this recipe, you will learn the steps required to create a new main stack.

How to do it...

To create a new main stack, follow these steps:

  1. Open LiveCode.
  2. From the pull-down menu, select File, and then select New Main Stack.
  3. You now have a new main stack that you can start using for your mobile app. The next step is to set the stack's size properties to match the mobile environment your app will support. Using the property inspector, select Size & Position, and make the necessary adjustments based on the following table:

How it works...

Setting the height and width via the Size & Position section of the property inspector establishes the size boundaries of your mobile app. By swapping the height and width values, you can designate landscape or portrait orientation.

There's more...

Mobile device screen resolutions are subject to change with new devices, so it is important that you check what resolutions your target device supports. This information is usually available via the Apple and Android development sites.

主站蜘蛛池模板: 龙门县| 阿荣旗| 化隆| 石城县| 邵阳县| 天峨县| 金湖县| 三明市| 华阴市| 平江县| 潼南县| 古田县| 固阳县| 廊坊市| 嘉鱼县| 皋兰县| 焉耆| 辽源市| 文山县| 兰州市| 额敏县| 吉安市| 教育| 合水县| 东台市| 融水| 广安市| 沂南县| 安陆市| 扎赉特旗| 屏南县| 鄂托克前旗| 康平县| 龙泉市| 眉山市| 徐汇区| 库车县| 石景山区| 尖扎县| 遵化市| 静安区|