- LiveCode Mobile Development Beginner's Guide
- Colin Holgate
- 284字
- 2021-08-13 18:18:30
Making a simple calculator application
With even a basic familiarity with LiveCode, you can start to make something of use. Here we will make a very simple calculator stack.
Inspector clues, oh…
You will find yourself using the Inspector palette a lot, so take a moment to study how it behaves. When you select an object on the card you will see that the Inspector palette changes its appearance, sometimes even its height, to show the options for the item you have selected. It is smart enough to notice when you have selected multiple items, and will then show the align tools.
Sometimes you will want to keep an Inspector palette set to view the options of a particular object on the card, and to not switch to show a different object as you make other selections. In the upper right-hand side corner of the Inspector palette is a padlock icon, which will let you lock the inspector to the current object.
So far, most of the Inspector palette options haven't affected us, but one that is about to be relevant is the fact that you can set a name for an item that is different to its label. You may know from other programming languages, and this also applies to LiveCode, that some names are less legal than others. Perhaps you can't have spaces in the name, or use a colon, or backslash. If you name a button with a number, Button "1" may not be Button 1, and that could lead to confusion.
For the calculator keys we will set a label to make it look correct, and a name that doesn't lead to confusion. Speaking of those calculator keys…
- RCNP實驗指南:構建高級的路由互聯網絡(BARI)
- Oracle SOA Suite 11g Performance Tuning Cookbook
- 計算機網絡安全實訓教程(第二版)
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 物聯網與無線傳感器網絡
- 物聯網安全技術
- Metasploit Penetration Testing Cookbook
- Mastering TypeScript 3
- 中國互聯網發展報告2018
- 圖解手機元器件維修技巧
- Getting Started with Memcached
- 大型企業微服務架構實踐與運營
- 局域網組成實踐
- Implementing NetScaler VPX?