The class form-layout
lays its children out in a form.
capi
: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. |
form-vertical-gap
form-vertical-adjust
form-title-gap
form-title-adjust
The form layout lays its children out in two columns, where the children in the left column (which are usually titles) are right adjusted while the children in the right column are left adjusted.
This class has been superseded by grid-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.
(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))
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:42