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

Time for action — it's a drag, but you'll like it!

You build things in LiveCode by dragging icons from the Tools palette to the Stack window. If the palettes are not already open, the Inspector palette can be opened by clicking the icon on the left-hand side end of the toolbar, or selecting one of the inspector menu items in the Object menu. The Tools palette can be opened by selecting Tools Palette from the Tools menu. To do this, perform the following steps:

  1. From the File menu, select New Mainstack.
  2. In the Tools palette, click on the Edit tool (the top right-hand side icon).

    Tip

    Select Edit, or not…

    In LiveCode you can drag controls from the Tools palette to the card window without first selecting the Edit tool. However, if you are in the Run tool you will not be able to select the control in order to adjust its position or size, and so in these instructions we are intentionally selecting the Edit tool before adding controls to the card window, just to be sure.

  3. Drag icons from the upper section of the Tools palette to the stack window.
  4. Try the layering options at the bottom of the Object menu.
  5. Select more than one item, and experiment with the Align Objects options in the Inspector palette. The align options are shown automatically when you select multiple objects, but you can also select Align Objects from the drop-down menu in the Inspector palette. You won't see that option if only one object is selected. Here we see the options, because three buttons are selected:
    Time for action — it's a drag, but you'll like it!
  6. Select a single button, and in the Inspector palette enter a Name and a Label. If you don't see the name and label fields, make sure you have selected Basic Properties from the Inspector pallet's drop-down menu.
  7. Add several more controls to the card window, and practice aligning and naming the controls. You can also resize them by dragging on the handles that you see on the corners and the sides, while the control is selected. Here is how it could look if you had added some buttons, a field, a tab panel, and a video player control:
    Time for action — it's a drag, but you'll like it!

What just happened?

Hopefully you will have made a random bunch of interface controls, perhaps some that are nicely lined up too! Now delete them all, and get ready to make the simple calculator interface.

But first we should go over some of the structure and hierarchy of a LiveCode stack, and also create some basic navigation.

主站蜘蛛池模板: 清苑县| 民和| 将乐县| 璧山县| 新沂市| 卢龙县| 鹿邑县| 临猗县| 弥勒县| 抚远县| 钦州市| 临城县| 信阳市| 通海县| 普兰店市| 都江堰市| 固镇县| 岐山县| 邳州市| 当涂县| 兴宁市| 类乌齐县| 虹口区| 柘荣县| 临澧县| 施秉县| 海原县| 台中市| 丰宁| 清涧县| 萨迦县| 赤水市| 理塘县| 岫岩| 隆昌县| 封开县| 绥化市| 富蕴县| 游戏| 濮阳市| 南昌市|