How do I use Relayering?
This lesson describes how to use the relayering functionality in LiveCode.
Relayering allows you to manipulate the layers of controls in a dynamic fashion and shift controls relative to other controls on a card. This lesson shows two examples in which layering can be used.
The Test Stack
Relayer Between Controls
In this example we are moving button b1 between buttons b2 and b3. We are using the following syntax to do this:
relayer button "b1" before button "b3"
We could also use the following syntax to complete the same operation:
relayer button "b1" after button "b2"
You can see how button b2 has seemingly moved onto the card.