NextPrevUpTopContentsIndex

column-layout

Class
Summary

The column-layout lays its children out in a column.

Package

capi

Superclasses

grid-layout

Initargs

:ratios

The size ratios between the layout's children.

:adjust

The horizontal adjustment for each child.

:gap

The gap between each child.

:uniform-size-p

If t , each child in the column has the same height.

Accessors

layout-ratios

Description

The column-layout lays its children out by inheriting the behavior from grid-layout. The description is a list of the layout's children, and the layout also translates the initargs ratios , adjust , gap and uniform-size-p into the grid-layout's equivalent initargs y-ratios , x-adjust , y-gap and y-uniform-size-p .

description may also contain the keyword :divider which automatically creates a divider as a child of the column-layout .

Example
(capi:contain (make-instance
               'capi:column-layout
               :description
                (list
                 (make-instance 'capi:push-button
                                :text "Press me")
                "Title"
                (make-instance 'capi:list-panel
                               :items '(1 2 3)))))
(setq column (capi:contain
              (make-instance
               'capi:column-layout
               :description
               (list
                (make-instance 'capi:push-button
                               :text "Press me")
                "Title:"
                (make-instance 'capi:list-panel
                               :items '(1 2 3)))
               :adjust :center)))
 
(capi:apply-in-pane-process
 column #'(setf capi:layout-x-adjust) :right column)
 
(capi:apply-in-pane-process
 column #'(setf capi:layout-x-adjust) :left column)
 
(capi:apply-in-pane-process
 column #'(setf capi:layout-x-adjust) :center column)
Compatibility Note

*layout-divider-default-size* and column-layout-divider are not supported in LispWorks 4.4 and later.

See also

row-layout


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex