(form "70013" (size 45 14)

  (heading "DRILLING PARAMETERS")

  (label (position  3  3) (text "Toe Spacing"))
  (label (position  3  4) (text "Tolerance"))
  (label (position  3  5) (text "Toe Spacing Algorithm"))
  (label (position  3  6) (text "Minimum Collar Distance"))
  (label (position  3  7) (text "Amount of Overdrill"))
  (label (position  3  8) (text "Hole Diameter"))
  (label (position  3  9) (text "Direction of Ring"))
  (label (position  3 10) (text "View-only Hole Colour"))
  (label (position  3 11) (text "Break-through Tolerance"))

  (field "ang_units" (position 16 3) (display_length 8)
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (dependency (value "toe_alg") == "angular")
  )

  (field "toe" (position 30  3) (display_length  8) (input allowed)
    (low_bound 0.1) (high_bound 100.0)
    (translate upper) (format real_8) (null disallowed) (max_length 8)
    )

  (field "tolerance" (position 30 4) (display_length  8) (input allowed)
    (low_bound 0) (high_bound 100)
    (translate upper) (format real_8) (null disallowed) (max_length 16)
    )

  (field "toe_alg" (position 30 5) (display_length  8) (input allowed)
    (value_in "AECI" "angular" "direct" "length" "offset")
    (default "AECI")
    )

  (field "collardist" (position 30 6) (display_length  8) (input allowed)
    (low_bound 0) (high_bound 100)
    (translate upper) (format real_8) (null disallowed) (max_length 16)
    )

  (field "overdrill" (position 30  7) (display_length  8) (input allowed)
    (low_bound -100) (high_bound 100)
    (translate upper) (format real_8) (null disallowed) (max_length 8)
    )

  (field "diameter" (position 30  8) (display_length  8) (input allowed)
    (translate upper) (format real_8) (null disallowed) (max_length 8)
    (low_bound 0.0)
    )

  (field "ring_direction" (position 30  9) (display_length 11) (input allowed)
    (value_in "clockwise" "anti-clockwise")
    (translate lower) (null disallowed) (max_length 14)
    )

  (field "colour" (position 30 10) (display_length 11)
    (input allowed)
    (translate lower)
    (null disallowed)
    (format colour)
    (max_length 32)
    (default "light grey")
    )

  (field "breakthrough" (position 30 11) (display_length 8)
    (input allowed)
    (translate lower)
    (null disallowed)
    (format real_8)
    (low_bound 0.0)
    (max_length 16)
    (default "0.5")
    )

  (default_buttons)
)
