RESOURCE_TYPE VIEW_PANEL

Hover on a highlighted element
to pop up its description.

An instance of this resource type encapsulates a panel with a specialized layout manager to implement a grid-like layout based on a characteristic dimension DIA in pixels. This panel and its layout manager implement the following rules:

  1. The preferred width of the panel is SIZE[0]*DIA pixels, and its preferred height is SIZE[1]*DIA pixels.
  2. If the DIA input of the resource is configured to a positive non-zero value, this value will override the value of any DIA input declared as UINT in any component function block contained in the resource.
  3. The background color of the panel is given by the BKGD input, and does not override the default or configured background color of a component function block.
  4. If the value of the VERTICAL input is FALSE(0), components "flow" first to the upper left corner and are then aligned one to the right of the other until a component no longer fits in the row. At this point the next component "flows" to the left of the next row, whose bottom margin is defined as the bottom edge of the highest component in the previous row.
  5. If the value of the VERTICAL input is TRUE(1), components "flow" first to the upper left corner and are then aligned one beneath the other until a component no longer fits in the column. At this point the next component "flows" to the top of the next column, whose left margin is defined as the right edge of the widest component in the previous column.

See the DRILL_VIEWL system configuration for an example of the use of instances of this type.