Skip to content
Matthias Görges edited this page Mar 11, 2015 · 6 revisions

The uiform textentry element creates a textentry field.

Parameter Default Description
id #f Variable to store entered string in
location 'db Textentry variable storage location
text "" Label string
indent 0.1 if no label text, or 0.3 with label text Indent from left edge of screen (in units of uiform width)
default "" Default value text
password #f Hide entered text with * characters

Example

Example 1: A complete page definition with different textentry options, from apps/WidgetDemo

(ex_textentry
  "Text Entry"
  ("Prev" ex_buttons #f)
  ("Next" ex_labels #f)
  (spacer)
  (textentry text "Plain text:" id dummy_pt)
  (spacer)
  (textentry text "Password:" id dummy_pw password #t)
  (spacer)
  (textentry text "Integer:" id dummy_it keypad numint)
  (spacer)
  (textentry text "Time:" id dummy_tm keypad numcolon default "HH:MM")
  (spacer)
)

Clone this wiki locally