The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
field.c File Reference

idunn: a field: a label above a control, and help text below it, 6 pixels apart, as the usual form row. More...

#include "idunn_internal.h"
#include <stdlib.h>
#include <string.h>

Macros

#define GAP   6

Functions

idunn_widget_t * idunn_field (const char *label, idunn_widget_t *control, const char *help)
 a form row: a label above the control and help text below it (or NULL).
void idunn_field_set_error (idunn_widget_t *field, const char *message)
 show an error: the message in red under the control, and the control's border and ring red.

Detailed Description

idunn: a field: a label above a control, and help text below it, 6 pixels apart, as the usual form row.

with an error, the help text is the message, in red, and the control is red too.

Macro Definition Documentation

◆ GAP

#define GAP   6

Function Documentation

◆ idunn_field()

idunn_widget_t * idunn_field ( const char * label,
idunn_widget_t * control,
const char * help )

a form row: a label above the control and help text below it (or NULL).

the field owns the control.

◆ idunn_field_set_error()

void idunn_field_set_error ( idunn_widget_t * field,
const char * message )

show an error: the message in red under the control, and the control's border and ring red.

NULL takes it away (the help text comes back).