(form "21406"
  (size 35 20)
  (heading "IMPORT CENTROIDS")

  (label (position 2 3) (text "Text file name"))
  (field "in_fname" (position 14 3) (display_length 15)
    (max_length "FIO_MAX_FILENAME_LENGTH")
    (input allowed)
    (translate lower)
    (null disallowed)
    (file input)
    )

  (label (position 2 5) (text "Number of header lines"))
  (field "num_hdrs" (position 24 5) (display_length 5)
    (format integer_4)
    (low_bound 0)
    (default "0")
    (input allowed)
    (null disallowed)
    )

  (label (position 2 6) (text "Comment characters"))
  (field "comments" (position 24 6) (display_length 5)
    (max_length 64)
    (input allowed)
    )

  (label (position 2 8) (text   "Delimited?"))
  (field "delimited" (position 14 8) (display_length 1)
    (input allowed)
    (translate upper)
    (value_in "Y" "N")
    (default "N")
    )
  (field "delimiter_label" (position 20 8) (display_length 10)
    (background (user_option "form_background"))
    (dependency (value "delimited") == "Y")
    (default "Delimiter"
    )
  )
  (field "delimiter"
    (position 28 8)
    (display_length 1)
    (input allowed)
    (dependency (value "delimited") == "Y")
    (default ",")
    )

  (field "single_size" (position 14 10) (display_length 3)
    (input allowed) (value_in "Y" "N") (default "Y")
  )

  (label (position 2 10) (text "Target block size"))
  (field "resolution" (position 14 10) (display_length 3)
    (input allowed)
  )

  (label (position 2 11) (text "Point count attribute"))
  (field "count_att" (position 14 11) (display_length 15) (max_length "BM_MAX_ATT_NAME_LEN")
    (input allowed)
    )

  (label (position 2 12) (text "Multiple points"))
  (field "multiple" (position 14 12) (display_length 15)
    (input allowed)
    (value_in "first" "last")
    (default "last")
    (auto_next off)
    )

  (label (position 2 14) (text "REPORT_FILE_NAME"))
  (field "log_fname" (position 14 14) (display_length 18)
    (max_length "FIO_MAX_FILENAME_LENGTH")
    (input allowed)
    (translate lower)
    (default "err")
    (file output
      (extension trim "reports|*.log")
    )
    (help "REPORT_FILE_NAME_TIP")
  )

  (field "report_format" (position 14 15) (display_length 16)
    (input allowed) (null disallowed)
    (value_in ".not - Surpac Note File"
              ".csv - Comma Separated (Spreadsheet)"
              ".htm - Hypertext Markup Language (Web)"
              ".html - Hypertext Markup Language (Web)"
              ".rtf - Rich Text Format (Microsoft Word)"
              ".pdf - Adobe Acrobat"
              ".ps - Postscript"
              ".log - Surpac log file"))

  (label (position 2 15) (text "Errors reported"))
  (field "num_errs" (position 14 15) (display_length 5)
    (format integer_4)
    (low_bound 0)
    (input allowed)
    (null allowed)
    )

  (label (position 2 17) (text "Constrain?"))
  (field "constrain" (position 14 17) (display_length 5)
    (input allowed)
    (translate upper)
    (value_in "Y" "N")
    (default "N")
    )

  (default_buttons)
)
