Instances of the class
column-layout-divider
are used as dividers in a column-layout.
The divider is a vertical line that can be dragged by the user and moved using the Left and Right arrow keys, when selected.
The simplest way to add a
column-layout-divider
is to include the keyword
:divider
in the
description
of a column-layout. This automatically creates a divider with the default
size
, which is 2.
To create a divider with thickness other than the default size , create it explicitly as in the second example below.
This example shows automatic creation using
:divider.
(capi:contain
(make-instance
'capi:column-layout
:description
(list (make-instance 'capi:editor-pane
:visible-min-height nil
:text
"Above the default divider")
:divider
(make-instance 'capi:editor-pane
:visible-min-height nil
:text
"Below the default divider"))
:visible-min-height 200))
This example illustrates creation of a thicker divider.
(capi:contain
(make-instance
'capi:column-layout
:description
(list (make-instance 'capi:editor-pane
:visible-min-height nil
:text
"Above the thicker divider")
(make-instance 'capi:column-layout-divider
:size 10)
(make-instance 'capi:editor-pane
:visible-min-height nil
:text
"Below the thicker divider"))
:visible-min-height 200))