1 CAPI Reference Entries

form-layout

Class

Summary

The classform-layout lays its children out in a form.

Superclasses

layout

Slots

vertical-gap
The gap between rows in the form.

vertical-adjust

The adjustment made to the rows.

title-gap
The gap between the two columns.

title-adjust
The adjustment made to the left column.

Accessors

form-vertical-gap
form-vertical-adjust
form-title-gap
form-title-adjust

Description

The form layout lays its children out in two columns, where the children in the left column (which are usually titles) are right adjusted whilst the children in the right column are left adjusted.

Compatibility Note

This class has been superseded bygrid-layout, and will probably be removed at some point in the future. The examples below demonstrate the use of grid layouts as an alternative to forms.

Examples

(setq children (list
                "Button:"
                (make-instance 'capi:push-button 
                               :text "Press Me")
                "Enter Text:"
                (make-instance 'capi:text-input-pane)
                "List:"
                (make-instance 'capi:list-panel 
                               :items '(1 2 3))))

(capi:contain (make-instance 'capi:grid-layout :description children :x-adjust '(:right :left) :y-adjust :center))

Example File

capi/layouts/form-using-grid.lisp

See Also

grid-layout
layout


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker