ยค stringInputF, passwdInputF, et al

Data entry fields

Types

stringInputF :: F String String
passwdInputF :: F String String
intInputF :: F Int Int

Description

These fudgets provides input fields.

stringInputF allows arbitrary strings to be entered. The string can be edited by moving a cursor with the arrow keys and inserting and deleting characters. The current selection can be pasted by pressing the middle mouse button.

passwdInputF works like stringInputF, except that it shows asterisks for all characters input.

intInputF works like stringInputF, except that it allows only integer values to be input.

Input

a string (or integer) that replaces the current contents of the input field.

Output

a value is output when an ``enter'' key is pressed. Currently Return, KP_Enter and Tab count as enter keys.

Example

 intInputF

Equalities

stringInputF = inputDoneSP >^^=< stringF
intInputF = inputDoneSP >^^=< intF
passwdInputF = inputDoneSP >^^=< passwdF

See Also

Fudgets with more detailed output: stringF, passwdF, intF.

Customisable versions: stringInputF' et al.