Next: Input Interaction, Previous: Adding Input Objects, Up: Part III Input Objects [Contents][Index]
The following types of input fields exist:
FL_NORMAL_INPUT
Any type of text can be typed into this field.
FL_FLOAT_INPUT
Only a floating point numbers can be typed in (e.g., -23.2e12). The
resulting string will be accepted by strtod()
in its entirety
(but may be too big to be represented by an int
or
long
).
FL_INT_INPUT
Only an integers can be typed in (e.g., -86). The resulting string will
be accepted by strtol()
in its entirety (but may be too big to
be represented by an float
or double
).
FL_DATE_INPUT
Only a date (MM/DD/YY or DD/MM/YY) can be typed in (and limited per default to 10 characters).
FL_MULTILINE_INPUT
An input field allowing for multiple lines.
FL_SECRET_INPUT
A normal input field that does not show the text (and limited per default to a maximum length of 16 characters).
FL_HIDDEN_INPUT
A normal input field but invisible.
A normal input field can contain one line of text, to be typed in by the user. A float input field can only contain a float number. If the user tries to type in something else than a float, it is not shown and the bell is sounded. Similarly, an int input field can only contain an integer number and a date input field can only contain a valid date (see below). A multi-line input field can contain multiple lines of text. A secret input field works like a normal input field but the text is not shown (or scrambled). Only the cursor is shown which does move while text is being entered. This can for example be used for getting passwords. Finally, a hidden input field is not shown at all but does collect text for the application program to use.
Next: Input Interaction, Previous: Adding Input Objects, Up: Part III Input Objects [Contents][Index]