Using invisible objects
Objects in LiveCode have the ability to be on screen but not visible. We can create invisible objects so that they provide a layer above underlying objects. This can benefit our efforts to develop mobile apps in several ways in order to include providing a method of capturing user input and the ability to add a script to the invisible object instead of multiple, underlying objects.
How to do it...
Follow the steps in this recipe to create an invisible object and assign the LiveCode script to it:
- Open LiveCode and create a new main stack.
- Set the background color of the stack to white.
- Add nine rectangles to the stack with the following basic properties:
- Width:
70
- Height:
64
- Opaque: Keep it checked
- Width:
- Name and position the nine rectangles as indicated in the following table:
Rectangle name
Location
rect1
63
,84
rect2
160
,84
rect3
258
,84
rect4
63
,188
rect5
160
,188
rect6
258
,188
rect7
63
,292
rect8
160
,292
rect9
258
,292...