new_ml_form_radio

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

new_ml_form_radio, ml_form_radio_set_checked, ml_form_radio_get_checked - monolith radio button widget

SYNOPSIS

#include <ml_form_radio.h>

ml_form_radio new_ml_form_radio (pool pool, ml_form_radio_group group, const char *value);
void ml_form_radio_set_checked (ml_form_radio w, int checked);
int ml_form_radio_get_checked (ml_form_radio w);

DESCRIPTION

This is a radio button input, for use in forms. Radio buttons represent choices, and thus are grouped together. For this reason, you must place all related radio buttons inside a ml_form_radio_group widget, which itself goes inside the form.
new_ml_form_radio creates a new radio button widget. The radio button group into which this widget is being embedded is passed as the group parameter.
After the form has been submitted, you can see which button was pressed by checking the value of the ml_form_radio_group widget, or by looking at the checked status of each individual radio button using ml_form_radio_(set|get)_checked.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

monolith-1.0.0

SEE ALSO

new_ml_form(3), new_ml_form_radio_group(3).