new_ml_form_radio, ml_form_radio_set_checked, ml_form_radio_get_checked - monolith radio button widget |
#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); |
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. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
monolith-1.0.0 |
new_ml_form(3), new_ml_form_radio_group(3). |