EAGLE Help

dlgGridLayout


Function
Opens a grid layout context.

Syntax
dlgGridLayout statement

Description
The dlgGridLayout statement opens a grid layout context.

The only dialog object that can be used directly in statement is dlgCell, which defines the location of a particular dialog object within the grid layout.

The row and column indexes start at 0, so the upper left cell has the index (0, 0).
The number of rows and columns is automatically extended according to the location of dialog objects that are defined within the grid layout context, so you don't have to explicitly define the number of rows and columns.

See also dlgCell, dlgHBoxLayout, dlgVBoxLayout, Layout Information, A Complete Example

Example

dlgGridLayout {
  dlgCell(0, 0) dlgLabel("Row 0/Col 0");
  dlgCell(1, 0) dlgLabel("Row 1/Col 0");
  dlgCell(0, 1) dlgLabel("Row 0/Col 1");
  dlgCell(1, 1) dlgLabel("Row 1/Col 1");
  }

Index Copyright © 2005 CadSoft Computer GmbH