Instances of the class
row-layout-divider
are used as dividers in a row-layout.
The divider is a horizontal line that can be dragged by the user and moved using the Up and Down arrow keys, when selected.
The simplest way to add a
row-layout-divider
is to include the keyword
:divider
in the
description
of a row-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:row-layout
:description
(list (make-instance 'capi:text-input-pane
:visible-min-width nil)
:divider
(make-instance 'capi:text-input-pane
:visible-min-width nil))
:visible-min-width 300))
This example illustrates creation of a thicker divider.
(capi:contain
(make-instance
'capi:row-layout
:description
(list (make-instance 'capi:text-input-pane
:visible-min-width nil)
(make-instance 'capi:row-layout-divider
:size 10)
(make-instance 'capi:text-input-pane
:visible-min-width nil))
:visible-min-width 300))