Cells

IWML Cells are represented by T17Control’s Cell property. The type of class in the cell property of each control varies depending on its current layout parent. The cell property can also be nil but only in run time circumstances. At design time, the cell property will always have an object assigned.

For the given IWML we have two buttons, but each exists in a different type of layout.

ACORN 1.0 IWML 1.0
TIndex:Index
  Cells[]
    SimpleStack[]
      SimpleStack[]
        Button Button in SimpleStack
      ]
      Fixed[]
        Button
          Cell
            X: 5
            Y: 10
          ]
          Text: Button in Fixed
        ]
      ]
    ]
  ]
]

When we examine the first button we can see it has an IsInline property.

The very same button control however when it is in a Fixed layout instead of a SimpleStack. Now the cell has no IsInline, but has X and Y properties.