The next common parameter for
create_ok_dialog(), or
create_ok_cancel_dialog() and others,
is the name of a small icon
displayed on the left side of the dialog. Currently, the possible
choices are:
“alert”, “stop”, and “question”.
The remaining parameters vary, and include:
A callback that receives a factory for creating the contents
of the dialog. This factory callback must create exactly one
widget. Dialogs typically contain brief messages, created
with create_label(), but may contain
arbitrary widgets. This is done by having the
factory callback create a container and then creating the
widgets in the new container.
create_input_field()'s factory callback
creates the widget that appears to the left of the
input field.
callbacks that get invoked when “Ok” or “Cancel” buttons are pressed.
Additional parameters for
create_input_field(): the initial
contents of the input field, and its
x::w::input_field_config (the
same parameters as the ones that get passed to
create_input_field().
Optional x::w::text_paramss
that override the label for the
“Ok” and
“Cancel” buttons.