This lesson will show you how to create your first app with LiveCode.
Start LiveCode, you will see the Integrated Development Environment or IDE.
Creating a new mainstack
Select New Stack - Default Size from the File menu. Every project you create in LiveCode is a stack.
This is a new stack, it is a blank canvas ready for you to start creating your app.
Creating a button
Drag a button from the Tools Palette onto the stack.
Opening the Code Editor
Click the Code button in the MenuBar to open the Code Editor for the button
Adding code to the button
When you open the Code Editor for the button you will see it is pre-populated with an on mouseUp handler. The code you add in here will be executed when the mouse is clicked and released over the button.
Adding code to the button (2)
Add the code
answer "Hello World!"
to the button.
The answer command
The answer command displays a dialog box with a message to the user.
Applying the new code
Click the Apply(1) button. The indicator(2) will turn green to show there are no errors.
Switch to Run mode to interact with the app.
Testing the button
Click the button.
The dialog box
After clicking the button you will see the message
Click OK to dismiss the dialog.