Widgets are created with widget-create
, which returns a
widget object. This object can be queried and manipulated by
other widget functions, until it is deleted with widget-delete
.
After the widgets have been created, widget-setup
must be called
to enable them.
The keyword arguments can be used to overwrite the keyword arguments that are part of type.
This should be called after creating all the widgets and before allowing the user to edit them.
If you want to insert text outside the widgets in the form, the
recommended way to do that is with widget-insert
.
There is a standard widget keymap which you might find useful.
widget-forward
and
widget-backward
, respectively. RET and mouse-2
are bound to widget-button-press
and
widget-button-
.
widget-button-press
and widget-button-click
when not on a button. By default this is global-map
.
Go to the first, previous, next, last section, table of contents.